Skip to content

Commit

Permalink
Merge pull request #25 from ppizarror/ui-improvements
Browse files Browse the repository at this point in the history
UI improvements
  • Loading branch information
ppizarror authored Dec 3, 2021
2 parents df24808 + 6eb7259 commit 1bc0313
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pydetex/_gui_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def _load_file() -> List[str]:
self.CFG_REPETITION_MIN_CHAR: (4, int, lambda x: x > 0),
self.CFG_REPETITION_USE_STEMMING: (True, bool, [True, False]),
self.CFG_REPETITION_USE_STOPWORDS: (True, bool, [True, False]),
self.CFG_SHOW_LINE_NUMBERS: (False, bool, [True, False]),
self.CFG_SHOW_LINE_NUMBERS: (True, bool, [True, False]),
self.CFG_TOTAL_OPENED_APP: (0, int, lambda x: x >= 0),
self.CFG_TOTAL_PROCESSED_WORDS: (0, int, lambda x: x >= 0),
self.CFG_WINDOW_SIZE: (self._valid_window_sizes[1], str, self._valid_window_sizes)
Expand Down
4 changes: 3 additions & 1 deletion pydetex/_gui_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ def _cfg_pipeline(self, tab: 'ttk.Frame', cfg: '_Settings', window_size: Tuple[i
f = ttk.Frame(tab, border=0)
f.pack(fill='both', pady=(0, 4 if ut.IS_OSX else 2))
label_pad = 5 if ut.IS_OSX else 15
self._pipeline_descr_title = make_label_ttk(f, w=70, h=40, side=tk.LEFT, pad=(0, label_pad, 5, 10), pack=False)
label_width = 70 if ut.IS_OSX else 54
self._pipeline_descr_title = make_label_ttk(f, w=label_width, h=40, side=tk.LEFT,
pad=(0, label_pad, 5, 10), pack=False)
self._pipeline_description = make_label_ttk(f, w=window_size[0] - 90, h=40, side=tk.LEFT,
pad=(0, 0, 5, 10))
self._change_description_pipeline()
Expand Down

0 comments on commit 1bc0313

Please sign in to comment.