-# das ist dann schon die echte funktionalitaet ;)
- components["clock"].doClock()
- components["clock"].doClock()
-
-
-# output as html
- print "--------------------------------------"
- html.create(components["$001"])
- print "--------------------------------------"
- html.create(components["$002"])
- print "--------------------------------------"
-
-
-# direkter test der GUI aus python:
-# label1 = eLabel(wnd)
-# label1.setText("hello world!\nfrom python!")
-# label1.move(ePoint(10, 10))
-# label1.resize(eSize(80, 50))
-#
-# label2 = eLabel(wnd)
-# label2.setText("the second\nlabel works\nas well!")
-# label2.move(ePoint(90, 10))
-# label2.resize(eSize(80, 50))
-#
-# button = eButton(wnd)
-# button.setText("OK")
-# button.move(ePoint(200, 10))
-# button.resize(eSize(80, 50))
-
- for x in range(200):
- time.sleep(0.1)
- components["clock"].doClock()
- if x > 100:
- r = 200 - x
+ def processDelay(self):
+ self.currentDialog.close()
+ if self.currentWindow != None:
+ self.currentWindow.hide()
+
+ del self.currentDialog
+ del self.currentWindow
+
+ self.open(screens["testDialog"]())
+
+ def open(self, screen):
+ self.currentDialog = screen
+ screen.session = self
+
+ if self.desktop != None:
+ self.currentWindow = wnd = eWindow(self.desktop)
+ wnd.setTitle("Screen from python!")
+ wnd.move(ePoint(300, 100))
+ wnd.resize(eSize(300, 300))
+
+ gui = GUIOutputDevice()
+ gui.parent = wnd
+ gui.create(self.currentDialog)
+
+ applyGUIskin(self.currentDialog, None, screen.__class__.__name__)
+
+ wnd.show()