Minor cleanup.
This commit is contained in:
parent
5da4663f98
commit
035f8108f0
|
|
@ -17,10 +17,10 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with joy.py. If not see <http://www.gnu.org/licenses/>.
|
# along with joy.py. If not see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
from builtins import object
|
||||||
|
|
||||||
|
|
||||||
#Do-nothing event handler.
|
#Do-nothing event handler.
|
||||||
from builtins import object
|
|
||||||
nothing = lambda event: None
|
nothing = lambda event: None
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,7 @@ class TextViewerWidget(tk.Text, MouseBindingsMixin, SavingMixin):
|
||||||
#Turn on undo, but don't override a passed-in setting.
|
#Turn on undo, but don't override a passed-in setting.
|
||||||
kw.setdefault('undo', True)
|
kw.setdefault('undo', True)
|
||||||
|
|
||||||
# kw.setdefault('bg', 'white')
|
# kw.setdefault('bg', 'white')
|
||||||
kw.setdefault('wrap', 'word')
|
kw.setdefault('wrap', 'word')
|
||||||
kw.setdefault('font', 'arial 12')
|
kw.setdefault('font', 'arial 12')
|
||||||
|
|
||||||
|
|
@ -219,7 +219,7 @@ class TextViewerWidget(tk.Text, MouseBindingsMixin, SavingMixin):
|
||||||
callback = callback_finder(self)
|
callback = callback_finder(self)
|
||||||
self.bind(event_sequence, callback)
|
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):
|
def find_command_in_line(self, line, index):
|
||||||
'''
|
'''
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,7 @@ def init_repo(repo_dir):
|
||||||
|
|
||||||
|
|
||||||
argparser = argparse.ArgumentParser(
|
argparser = argparse.ArgumentParser(
|
||||||
|
prog='joy.gui',
|
||||||
description='Experimental Brutalist UI for Joy.',
|
description='Experimental Brutalist UI for Joy.',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue