| 6053 | | self.helpmenu.insert_command(2, label='Tutorial', underline=0, command= |
|---|
| 6054 | | lambda s='file:'+os.path.abspath(os.path.join(self.basepath,'doc', |
|---|
| 6055 | | 'tutorial.html')) : |
|---|
| 6056 | | webbrowser.open(s, new=1)) |
|---|
| | 6056 | self.helpmenu.insert_command(2, label='Tutorial', underline=0, command=self.showTutorial) |
|---|
| | 6057 | |
|---|
| | 6058 | |
|---|
| | 6059 | def showTutorial(self): |
|---|
| | 6060 | try: |
|---|
| | 6061 | webbrowser.open('file:'+os.path.abspath(os.path.join(self.basepath,'doc','tutorial.html')),new=1) |
|---|
| | 6062 | except: |
|---|
| | 6063 | showwarning('Error', 'Failed to open the web browser.\nYou can find the tutorial as\n'+\ |
|---|
| | 6064 | 'file:'+os.path.abspath(os.path.join(self.basepath,'doc','tutorial.html'))) |
|---|