mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
1. If user passes a non-existant filename on the commandline, just open
a new file, don't raise a dialog. IDLEfork 954928. 2. Refactor EditorWindow.wakeup() to WindowList.ListedToplevel.wakeup() and clarify that the Toplevel of an EditorWindow is a WindowList.ListedToplevel. 3. Make a number of improvements to keyboard focus binding. Improve window raising, especially in the debugger. IDLEfork Bug 763524 (GvR list). 4. Bump idlever to 1.1a3 M Debugger.py M EditorWindow.py M FileList.py M NEWS.txt M PyShell.py M WindowList.py M idlever.py
This commit is contained in:
parent
e594bee535
commit
183403a271
7 changed files with 40 additions and 47 deletions
|
@ -75,7 +75,7 @@ class EditorWindow:
|
|||
root = root or flist.root
|
||||
self.root = root
|
||||
self.menubar = Menu(root)
|
||||
self.top = top = self.Toplevel(root, menu=self.menubar)
|
||||
self.top = top = WindowList.ListedToplevel(root, menu=self.menubar)
|
||||
if flist:
|
||||
self.tkinter_vars = flist.vars
|
||||
#self.top.instance_dict makes flist.inversedict avalable to
|
||||
|
@ -102,6 +102,7 @@ class EditorWindow:
|
|||
'cursor',fgBg='fg'),
|
||||
width=self.width,
|
||||
height=idleConf.GetOption('main','EditorWindow','height') )
|
||||
self.top.focused_widget = self.text
|
||||
|
||||
self.createmenubar()
|
||||
self.apply_bindings()
|
||||
|
@ -236,13 +237,6 @@ class EditorWindow:
|
|||
self.status_bar.set_label('column', 'Col: %s' % column)
|
||||
self.status_bar.set_label('line', 'Ln: %s' % line)
|
||||
|
||||
def wakeup(self):
|
||||
if self.top.wm_state() == "iconic":
|
||||
self.top.wm_deiconify()
|
||||
else:
|
||||
self.top.tkraise()
|
||||
self.text.focus_set()
|
||||
|
||||
menu_specs = [
|
||||
("file", "_File"),
|
||||
("edit", "_Edit"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue