Fixed new file behavior.
This commit is contained in:
parent
6414cef02d
commit
2830cdc135
|
|
@ -15,7 +15,7 @@ os.putenv("UBUNTU_MENUPROXY", "0")
|
||||||
#import objc, AppKit, cPickle
|
#import objc, AppKit, cPickle
|
||||||
|
|
||||||
#Uncomment to build on Windows
|
#Uncomment to build on Windows
|
||||||
#import ctypes, ctypes.wintypes, win32print
|
# import ctypes, ctypes.wintypes, win32print
|
||||||
|
|
||||||
#SVLGUI - my custom GUI wrapper to abstract the GUI
|
#SVLGUI - my custom GUI wrapper to abstract the GUI
|
||||||
import svlgui
|
import svlgui
|
||||||
|
|
|
||||||
|
|
@ -570,7 +570,7 @@ def menufuncs(j):
|
||||||
#menu = GUI.Menu("Test", [("Run", 'run_file')])
|
#menu = GUI.Menu("Test", [("Run", 'run_file')])
|
||||||
menus.append(menu)
|
menus.append(menu)
|
||||||
else:
|
else:
|
||||||
cmds={"New":"new_cmd", "Save":"save_cmd", "Save As":"save_as_cmd", "Open":"open_cmd","About Lightningbeam...":"about_cmd",\
|
cmds={"New...":"new_cmd", "Save":"save_cmd", "Save As":"save_as_cmd", "Open":"open_cmd","About Lightningbeam...":"about_cmd",\
|
||||||
"Preferences":"preferences_cmd", "Undo":"undo_cmd", "Redo":"redo_cmd"}
|
"Preferences":"preferences_cmd", "Undo":"undo_cmd", "Redo":"redo_cmd"}
|
||||||
[setattr(app,cmds[k[0]],k[1]) for k in i if (k[0] in cmds)]
|
[setattr(app,cmds[k[0]],k[1]) for k in i if (k[0] in cmds)]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue