diff --git a/_pyren_launcher.py b/_pyren_launcher.py index d519328..da58a0e 100755 --- a/_pyren_launcher.py +++ b/_pyren_launcher.py @@ -19,6 +19,7 @@ from os import listdir from os.path import isdir from os.path import isfile import sys +import webbrowser try: import cPickle as pickle @@ -348,6 +349,9 @@ if osname != 'android': elif res == 2: tkMessageBox.showerror("Error", "UnZip error") + def cmd_Info(self): + webbrowser.open_new('help.pdf') + def saveSettings(self): self.save.path = self.var_path.get() self.save.port = self.var_port.get().split(';')[0] @@ -807,6 +811,17 @@ if osname != 'android': self.btnUpg.configure(highlightbackground="#d9d9d9") self.btnUpg.configure(highlightcolor="black") self.btnUpg.configure(text='''Update''') + + self.btnInfo = tk.Button(self.root) + self.btnInfo.place(relx=0.61, rely=0.91, height=22, width=100) + self.btnInfo.configure(activebackground="#d9d9d9") + self.btnInfo.configure(activeforeground="#000000") + self.btnInfo.configure(background="#d9d9d9") + self.btnInfo.configure(command=self.cmd_Info) + self.btnInfo.configure(foreground="#000000") + self.btnInfo.configure(highlightbackground="#d9d9d9") + self.btnInfo.configure(highlightcolor="black") + self.btnInfo.configure(text='''Info''') self.pathList = ttk.Combobox(self.root) self.pathList.place(relx=0.04, rely=0.05, relheight=0.06, relwidth=0.41)