diff --git a/joy/gui/mousebindings.py b/joy/gui/mousebindings.py index 2c43cd1..db5e157 100644 --- a/joy/gui/mousebindings.py +++ b/joy/gui/mousebindings.py @@ -17,10 +17,10 @@ # You should have received a copy of the GNU General Public License # along with joy.py. If not see . # +from builtins import object #Do-nothing event handler. -from builtins import object nothing = lambda event: None diff --git a/joy/gui/textwidget.py b/joy/gui/textwidget.py index 7734001..fc1aeec 100644 --- a/joy/gui/textwidget.py +++ b/joy/gui/textwidget.py @@ -189,7 +189,7 @@ class TextViewerWidget(tk.Text, MouseBindingsMixin, SavingMixin): #Turn on undo, but don't override a passed-in setting. kw.setdefault('undo', True) -# kw.setdefault('bg', 'white') + # kw.setdefault('bg', 'white') kw.setdefault('wrap', 'word') kw.setdefault('font', 'arial 12') @@ -219,7 +219,7 @@ class TextViewerWidget(tk.Text, MouseBindingsMixin, SavingMixin): callback = callback_finder(self) self.bind(event_sequence, callback) -## T.protocol("WM_DELETE_WINDOW", self.on_close) + ## T.protocol("WM_DELETE_WINDOW", self.on_close) def find_command_in_line(self, line, index): ''' diff --git a/joy/gui/utils.py b/joy/gui/utils.py index 37a9b51..2df86c9 100644 --- a/joy/gui/utils.py +++ b/joy/gui/utils.py @@ -71,6 +71,7 @@ def init_repo(repo_dir): argparser = argparse.ArgumentParser( + prog='joy.gui', description='Experimental Brutalist UI for Joy.', )