Originally Posted by
nezzeo
I got past this in the end, problem was my script had some funky ^M chars on the end of each line.
I've finished my script, except for any minor tweaks along the way.
The script now has evolved into a button thats listed under the plugins. When clicked it downloads my latest bouquets/services from some personal webspace, replaces the current ones, tidies up after itself and reboots the box for the changes to take effect (ideally I'd like it so that it just restarts Enigma instead) but no luck with that so far.
The reason for this script? I have a couple of friends with boxes, completely non-technical that I dont fancy visiting only to ftp over my latest files every time sky decide to move a chan or 2. Instead they click a button and job done!
is it a enigma2 plugin ?, if so execute this command,
place this in the top of the plugin
Code:
from Screens.MessageBox import MessageBox
place at the end of you current def:
Code:
message = 'GUI needs a restart to apply the changes !!!\nDo you want to restart GUI now ?'
ybox = self.session.openWithCallback(self.restBox, MessageBox, message, MessageBox.TYPE_YESNO)
ybox.setTitle('Restart box.')
def restBox(self, answer):
if answer is True:
self.session.open(TryQuitMainloop, 3)
else:
self.close()
it will poup a message box asking do you want to restart gui