1079 |
|
|
1080 |
def on_help_check_for_updates_click(self,*args): |
def on_help_check_for_updates_click(self,*args): |
1081 |
v = VersionCheck() |
v = VersionCheck() |
|
v.check() |
|
1082 |
title = "Check for updates" |
title = "Check for updates" |
1083 |
text = "Your version is %s\n" % config.VERSION |
text = "Your version is %s\n" % config.VERSION |
1084 |
text += "Latest version is %s\n" % v.latest |
try: |
1085 |
if v.info: |
v.check() |
1086 |
text += "Get more info at %s\n" % v.info |
text += "Latest version is %s\n" % v.latest |
1087 |
if v.download: |
if v.info: |
1088 |
text += "Download from %s\n" % v.download |
text += "Get more info at %s\n" % v.info |
1089 |
|
if v.download: |
1090 |
|
text += "Download from %s\n" % v.download |
1091 |
|
except Exception, e: |
1092 |
|
text += "\nUnable to check version\n" |
1093 |
|
text += str(e) |
1094 |
|
|
1095 |
_dialog = InfoDialog(self,self.window,text,title) |
_dialog = InfoDialog(self,self.window,text,title) |
1096 |
_dialog.run() |
_dialog.run() |