Check-in [978c9ffe56]
Overview
Comment: | safeguard absent config option |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
978c9ffe56c75c6fb93bb5089c2195ec |
User & Date: | mario on 2016-12-11 13:32:10 |
Other Links: | manifest | tags |
Context
2016-12-11
| ||
14:18 | Switch order of load_config() widget checks: on Windows the spinbutton may have a different parent check-in: daefcf55d1 user: mario tags: trunk | |
13:32 | safeguard absent config option check-in: 978c9ffe56 user: mario tags: trunk | |
13:31 | Undo __name__ shortcut, because it carries the package name as well check-in: 6946ba0cdd user: mario tags: trunk | |
Changes
Modified channels/specbuttons.py from [2d832ee6ca] to [8a8982cf89].
︙ | ︙ | |||
51 52 53 54 55 56 57 58 59 60 61 62 63 64 | parent.hooks["config_save"].append(self.update_paths) parent.specbuttons.show() # Extra buttons def update_buttons(self, parent): # define table width (2 rows default) y = max(min(int(conf.specbutton_rows), 4), 1) # 1 <= y <= 4 self.specbuttons.resize(y, int(math.ceil(len(conf.specbuttons) / y))) # clean up for widget in self.specbuttons.get_children(): widget.destroy() # add icon buttons | > | 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | parent.hooks["config_save"].append(self.update_paths) parent.specbuttons.show() # Extra buttons def update_buttons(self, parent): # define table width (2 rows default) y = conf.specbuttons_rows if "specbuttons_rows" in conf else 2 y = max(min(int(conf.specbutton_rows), 4), 1) # 1 <= y <= 4 self.specbuttons.resize(y, int(math.ceil(len(conf.specbuttons) / y))) # clean up for widget in self.specbuttons.get_children(): widget.destroy() # add icon buttons |
︙ | ︙ |