
import os
import sys
import locale
Version = "0.62"

def version_info():
    try:
        import wx.__version__ as wx_version
    except:
        wx_version = "Not Installed"
    return "%s (%s/%s)\nPython Version: %s\nwxPython Version: %s\n" % (full_version(), locale.getdefaultlocale()[0], locale.getpreferredencoding(), sys.version[:3], wx_version)

def full_version():
    return "{0} {1}".format(os.path.basename(sys.argv[0]), Version)

@@ -75,56 +75,216 @@
     
-try:%0A        import wx.__version__ as wx_version
+%22Returns a human readable multi-line string containting the program's version information%22%0A    try:%0A        import wx.__version__ as wx_version%0A        gui_version = %22wxPython Version: %7B0%7D%22.format(wx_version)
 %0A   
@@ -300,18 +300,19 @@
         
-wx
+gui
 _version
@@ -315,16 +315,25 @@
 sion = %22
+wxPython 
 Not Inst
@@ -337,16 +337,17 @@
 nstalled
+!
 %22%0A    re
@@ -356,17 +356,38 @@
 rn %22
-%25s (%25s/%25s
+%7Bprogram%7D (%7Blocale%7D/%7Bencoding%7D
 )%5CnP
@@ -405,55 +405,98 @@
 on: 
-%25s%5CnwxP
+%7Bp
 ython
- V
+_v
 ersion
-: %25s%5Cn%22 %25 (full_version(), 
+%7D%5Cn%7Bgui_version%7D%5Cn%22.format(%0A        program=full_version(),%0A        locale=
 loca
@@ -520,17 +520,34 @@
 le()%5B0%5D,
- 
+%0A        encoding=
 locale.g
@@ -572,36 +572,80 @@
 g(),
- sys.version%5B:3%5D, wx
+%0A        python_version=sys.version%5B:3%5D,%0A        gui_version=gui
 _version
 )%0A%0Ad
@@ -640,16 +640,21 @@
 _version
+%0A    
 )%0A%0Adef f

Make Printing the version information more generic