X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/f604d2c7c5b6d8c004017007028415fe3560208a..236458043cfd6eb332f272c7782f1a2948af96c3:/mytest.py diff --git a/mytest.py b/mytest.py index 1823d8c2..391eda9f 100644 --- a/mytest.py +++ b/mytest.py @@ -110,11 +110,11 @@ class Session: # when execBegin opened a new dialog, don't bother showing the old one. if c == self.currentDialog: - c.instance.show() + c.show() def execEnd(self): self.currentDialog.execEnd() - self.currentDialog.instance.hide() + self.currentDialog.hide() def create(self, screen, arguments): # creates an instance of 'screen' (which is a class) @@ -153,7 +153,7 @@ class Session: if key == "zPosition": z = int(value) - dlg.instance = eWindow(self.desktop, -z) + dlg.instance = eWindow(self.desktop, z) applyAllAttributes(dlg.instance, self.desktop, dlg.skinAttributes) gui = GUIOutputDevice() gui.parent = dlg.instance @@ -235,7 +235,7 @@ class VolumeControl: if (eDVBVolumecontrol.getInstance().isMuted()): self.volMute() eDVBVolumecontrol.getInstance().volumeUp() - self.volumeDialog.instance.show() + self.volumeDialog.show() self.volumeDialog.setValue(eDVBVolumecontrol.getInstance().getVolume()) self.volSave() self.hideVolTimer.start(3000, True) @@ -244,22 +244,22 @@ class VolumeControl: if (eDVBVolumecontrol.getInstance().isMuted()): self.volMute() eDVBVolumecontrol.getInstance().volumeDown() - self.volumeDialog.instance.show() + self.volumeDialog.show() self.volumeDialog.setValue(eDVBVolumecontrol.getInstance().getVolume()) self.volSave() self.hideVolTimer.start(3000, True) def volHide(self): - self.volumeDialog.instance.hide() + self.volumeDialog.hide() def volMute(self): eDVBVolumecontrol.getInstance().volumeToggleMute() self.volumeDialog.setValue(eDVBVolumecontrol.getInstance().getVolume()) if (eDVBVolumecontrol.getInstance().isMuted()): - self.muteDialog.instance.show() + self.muteDialog.show() else: - self.muteDialog.instance.hide() + self.muteDialog.hide() def runScreenTest(): session = Session()