Skip to content
Snippets Groups Projects

Sc209/dropdown menus

Merged Ghost User requested to merge SC209/dropdown-menus into review-window
1 file
+ 2
4
Compare changes
  • Side-by-side
  • Inline
+ 2
4
@@ -297,7 +297,6 @@ class View:
# Interactive elements
self._create_combobox('file {}'.format(type_code),
frame,
type_code,
2, column)
self._create_button('select {}'.format(type_code),
frame,
@@ -379,14 +378,13 @@ class View:
add_to_dict(key, radio, self._elements)
def _create_combobox(self, key, frame, type_code, row, column):
def _create_combobox(self, key, frame, row, column):
"""Create combobox, a drop-down file selection widget.
Args:
key: Key to save button in _elements dictionary
frame: Frame into which to place the button
column: Column in grid to place the button in
type_code: Role of combobox ('source' or 'shadow')
Raises:
ValueError: Key already exists
@@ -475,7 +473,7 @@ class View:
self._create_label('review_title', pop_up, 'Review marked mistakes',
0, 0, False)
self._create_label('review_label', pop_up, 'File: ', 1, 0, False)
self._create_combobox('review_box', pop_up, '', 1, 1)
self._create_combobox('review_box', pop_up, 1, 1)
# Is the save functionality here equal to the other save button?
self._create_button('save_review', pop_up, 'Save', 2, 0)
Loading