Skip to content

Commit f22a530

Browse files
committed
Reduced line lengths
1 parent 16ea88e commit f22a530

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

tmpNote.py

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,15 +276,25 @@ def menu_bar(self):
276276
editmenu.AppendSeparator()
277277
editmenu.Append(wx.ID_CUT, 'Cut\tCtrl+X', 'Cut selection from file.')
278278
self.Bind(wx.EVT_MENU, self.cut_copy_paste_del_sel_event, id=wx.ID_CUT)
279-
editmenu.Append(wx.ID_COPY, '&Copy\tCtrl+C', 'Copy selection from file.')
279+
editmenu.Append(
280+
wx.ID_COPY, '&Copy\tCtrl+C', 'Copy selection from file.'
281+
)
280282
self.Bind(wx.EVT_MENU, self.cut_copy_paste_del_sel_event, id=wx.ID_COPY)
281-
editmenu.Append(wx.ID_PASTE, '&Paste\tCtrl+V', 'Paste clipboard into file.')
282-
self.Bind(wx.EVT_MENU, self.cut_copy_paste_del_sel_event, id=wx.ID_PASTE)
283+
editmenu.Append(
284+
wx.ID_PASTE, '&Paste\tCtrl+V', 'Paste clipboard into file.'
285+
)
286+
self.Bind(
287+
wx.EVT_MENU, self.cut_copy_paste_del_sel_event, id=wx.ID_PASTE
288+
)
283289
editmenu.Append(wx.ID_DELETE, 'Delete', 'Delete the selected text.')
284-
self.Bind(wx.EVT_MENU, self.cut_copy_paste_del_sel_event, id=wx.ID_DELETE)
290+
self.Bind(
291+
wx.EVT_MENU, self.cut_copy_paste_del_sel_event, id=wx.ID_DELETE
292+
)
285293
editmenu.AppendSeparator()
286294
editmenu.Append(wx.ID_SELECTALL, 'Select All', 'Select all text.')
287-
self.Bind(wx.EVT_MENU, self.cut_copy_paste_del_sel_event, id=wx.ID_SELECTALL)
295+
self.Bind(
296+
wx.EVT_MENU, self.cut_copy_paste_del_sel_event, id=wx.ID_SELECTALL
297+
)
288298

289299
# findmenu = wx.Menu()
290300
# menubar.Append(findmenu, 'F&ind')
@@ -1062,7 +1072,9 @@ def close_all_action(self):
10621072
def cut_copy_paste_del_sel_event(self, event):
10631073
"""Event requesting cut, copy, paste, delete, or select all text."""
10641074

1065-
ids = set((wx.ID_CUT, wx.ID_COPY, wx.ID_PASTE, wx.ID_DELETE, wx.ID_SELECTALL))
1075+
ids = set((
1076+
wx.ID_CUT, wx.ID_COPY, wx.ID_PASTE, wx.ID_DELETE, wx.ID_SELECTALL
1077+
))
10661078
if event.GetId() in ids:
10671079
self.cut_copy_paste_del_sel_action(event)
10681080
else:

0 commit comments

Comments
 (0)