2020"""
2121
2222from __future__ import absolute_import , division , print_function
23+ import sys , os
2324try :
2425 from tkinter import *
2526 from tkinter .ttk import *
@@ -463,7 +464,7 @@ def about_Tables(self):
463464 self .ab_win = Toplevel ()
464465 self .ab_win .geometry ('+100+350' )
465466 self .ab_win .title ('About TablesApp' )
466-
467+ from . import __version__
467468 from . import Table_images
468469 logo = Table_images .tableapp_logo ()
469470 label = Label (self .ab_win ,image = logo )
@@ -474,7 +475,8 @@ def about_Tables(self):
474475 'Copyright (C) Damien Farrell 2008-' , 'This program is free software; you can redistribute it and/or' ,
475476 'modify it under the terms of the GNU General Public License' ,
476477 'as published by the Free Software Foundation; either version 2' ,
477- 'of the License, or (at your option) any later version.' ]
478+ 'of the License, or (at your option) any later version.' ,
479+ 'tkintertable version %s' % __version__ ]
478480 row = 1
479481 for line in text :
480482 tmp = Label (self .ab_win ,text = line )
@@ -486,7 +488,7 @@ def online_documentation(self,event=None):
486488 """Open the online documentation"""
487489
488490 import webbrowser
489- link = 'http ://sourceforge.net/projects /tkintertable/'
491+ link = 'https ://github.com/dmnfarrell /tkintertable/wiki '
490492 webbrowser .open (link ,autoraise = 1 )
491493 return
492494
@@ -540,7 +542,7 @@ def add_button(self, name, callback, img=None):
540542
541543def main ():
542544 "Run the application"
543- import sys , os
545+
544546 from optparse import OptionParser
545547 parser = OptionParser ()
546548 parser .add_option ("-f" , "--file" , dest = "tablefile" ,
0 commit comments