Skip to content

Commit

Permalink
Remove autocall setting, make cusp labels default to False.
Browse files Browse the repository at this point in the history
  • Loading branch information
culler committed Dec 27, 2024
1 parent ef2d643 commit e29dda6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
5 changes: 0 additions & 5 deletions python/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,11 +439,6 @@ def apply_settings(self):
IP.magics_manager.magics['line']['autocall'](2)
else:
IP.magics_manager.magics['line']['autocall'](0)
if 'automagic' in changed:
if self.setting_dict['automagic']:
IP.magics_manager.magics['line']['automagic']('on')
else:
IP.magics_manager.magics['line']['automagic']('off')
self.terminal.quiet = False
for window in self.window_list:
window.apply_settings()
Expand Down
10 changes: 1 addition & 9 deletions python/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ def __init__(self, text_widget):
self.text_widget = text_widget
self.setting_dict = {
'autocall' : False,
'automagic' : False,
'font' : self.current_font_tuple(),
'cusp_horoballs' : True,
'cusp_triangulation' : True,
'cusp_ford_domain' : True,
'cusp_parallelogram' : True,
'cusp_labels' : True,
'cusp_labels' : False,
'cusp_cutoff' : '0.1000',
'keyboard' : 'QWERTY'}
self.cache = {}
Expand Down Expand Up @@ -265,7 +264,6 @@ def set_font_sample(self, event=None):
def build_shell_pane(self, master):
groupBG = self.style.groupBG
self.autocall = Tk_.BooleanVar(value=self.settings['autocall'])
self.automagic = Tk_.BooleanVar(value=self.settings['automagic'])
self.update_idletasks()
self.shell_frame = shell_frame = ttk.Frame(master)
shell_frame.rowconfigure(3, weight=1)
Expand All @@ -281,17 +279,11 @@ def build_shell_pane(self, master):
text='IPython autocall',
command=self.set_autocall)
next_check.grid(row=1, column=1, sticky=Tk_.W, pady=(10,0))
next_check = ttk.Checkbutton(shell_frame, variable=self.automagic,
text='IPython automagic',
command=self.set_automagic)
next_check.grid(row=2, column=1, sticky=Tk_.W, pady=(5,0))

def set_autocall(self):
self.settings['autocall'] = self.autocall.get()

def set_automagic(self):
self.settings['automagic'] = self.automagic.get()

def build_cusp_pane(self, master):
groupBG = self.style.groupBG
self.cusp_frame = cusp_frame = ttk.Frame(master)
Expand Down

0 comments on commit e29dda6

Please sign in to comment.