Mailinglist Archive: yast-devel (73 mails)

< Previous Next >
Re: [yast-devel] Replacepoints with python-yui
  • From: "Jan-Simon Möller" <dl9pf@xxxxxx>
  • Date: Tue, 5 Aug 2008 17:10:42 +0200
  • Message-id: <200808051710.42370.dl9pf@xxxxxx>
Am Dienstag 05 August 2008 16:35:58 schrieb Martin Vidner:

You can copy the implementation from here:
YCP_UI::ReplaceWidget, line 786 of
http://svn.opensuse.org/svn/yast/trunk/ycp-ui-bindings/src/YCP_UI.cc


#if VERBOSE_REPLACE_WIDGET
replacePoint->dumpDialogWidgetTree();
#endif
YDialog * dialog = YDialog::currentDialog();

YWidget::OptimizeChanges below( *dialog ); // delay screen updates
until this block is left
replacePoint->deleteChildren();

YCPDialogParser::parseWidgetTreeTerm( replacePoint, newContentTerm );
replacePoint->showChild();

#if VERBOSE_REPLACE_WIDGET
replacePoint->dumpDialogWidgetTree();
#endif

dialog->setInitialSize();
dialog->checkShortcuts();

hmm ... looking at the code i will give it a try , but we probably the *Tree
calls need to be fixed first for the python bindings.
As both the rebuildMenuTree and rebuildTree fail atm, this *Tree operation
migth also fail.

I'll try to use it manually and report.

Thank you!

Best regards
Jan-Simon
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >