re-add autostart plugins
[enigma2.git] / mytest.py
index aab7e0abce710ae8e01786d8a3fc14c31704365c..91cb9f955287d63788f121bceb0b2f14aeee4e09 100644 (file)
--- a/mytest.py
+++ b/mytest.py
@@ -1,3 +1,4 @@
+from Tools import RedirectOutput
 from enigma import *
 from tools import *
 
@@ -34,7 +35,8 @@ except:
 
 # initialize autorun plugins and plugin menu entries
 from Components.PluginComponent import plugins
-plugins.getPluginList(runAutostartPlugins=True)
+plugins.readPluginList()
+
 from Screens.Wizard import wizardManager
 from Screens.StartWizard import *
 from Screens.TutorialWizard import *
@@ -110,11 +112,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)
@@ -235,7 +237,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 +246,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()
@@ -329,7 +331,7 @@ import Components.NimManager
 # first, setup a screen
 try:
        runScreenTest()
-       plugins.getPluginList(runAutoendPlugins=True)
+       plugins.shutdown()
 except:
        print 'EXCEPTION IN PYTHON STARTUP CODE:'
        print '-'*60