Commits

Westley Martínez committed 1577f3c

Add version constant in editor.

Comments (0)

Files changed (1)

 
 from animap import Map
 
+VERSION = '0.1.2'
+
 class DummyMouseEvent:
 
     x = 0
         self.master = tk.Toplevel(root)
         self.master.resizable(0, 0)
         self.master.protocol('WM_DELETE_WINDOW', self.quit)
-        self.master.title('Map Editor 0.1.0')
+        self.master.title('Map Editor ' + VERSION)
         if os.name == 'nt':
             self.master.iconbitmap('icon.ico')
         elif os.name == 'posix':
         self.frame2 = tk.Frame(self.master)
         self.frame2.pack(side=RIGHT, fill=BOTH, expand=1)
         self.title = tk.Message(self.frame2,
-                                text='Map Editor 0.1.0\n'
+                                text='Map Editor ' + VERSION + '\n'
                                      'Written by Westley Martínez\n\n'
                                      'Copyright © 2013\n'
                                      'Released under the MIT License.')