Minor cleanup.

This commit is contained in:
Simon Forman 2020-04-25 18:41:26 -07:00
parent 5da4663f98
commit 035f8108f0
3 changed files with 4 additions and 3 deletions

View File

@ -17,10 +17,10 @@
# You should have received a copy of the GNU General Public License
# along with joy.py. If not see <http://www.gnu.org/licenses/>.
#
from builtins import object
#Do-nothing event handler.
from builtins import object
nothing = lambda event: None

View File

@ -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):
'''

View File

@ -71,6 +71,7 @@ def init_repo(repo_dir):
argparser = argparse.ArgumentParser(
prog='joy.gui',
description='Experimental Brutalist UI for Joy.',
)