Mailinglist Archive: yast-devel (73 mails)

< Previous Next >
Re: [yast-devel] Replacepoints with python-yui
  • From: Klaus Kaempf <kkaempf@xxxxxxx>
  • Date: Tue, 5 Aug 2008 17:38:24 +0200
  • Message-id: <20080805153824.GA18018@xxxxxxxxxxxxx>
* Jan-Simon Möller <dl9pf@xxxxxx> [Aug 05. 2008 17:21]:
update:

import yui
factory = yui.YUI.widgetFactory()
dialog = factory.createMainDialog()
replacepoint = factory.createReplacePoint(dialog)
hbox = factory.createHBox(replacepoint)
b1 = factory.createPushButton(hbox, "1")
b2 = factory.createPushButton(hbox, "2")
b3 = factory.createPushButton(hbox, "3")
event = dialog.waitForEvent() # push button
replacepoint.deleteChildren()
vbox = factory.createVBox(replacepoint)
b1 = factory.createPushButton(vbox, "1")
b2 = factory.createPushButton(vbox, "2")
b3 = factory.createPushButton(vbox, "3")
dialog.recalcLayout()
replacepoint.showChild()
event = dialog.waitForEvent() # tada!

WORKS ! ;) !

Cool, thanks !

Submitted to svn as
http://svn.opensuse.org/svn/yast/trunk/libyui-bindings/swig/python/examples/replacepoint.py

Klaus
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >