Skip to content

Commit 7ca5d84

Browse files
committed
fix gui
1 parent 2eb0af7 commit 7ca5d84

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

gui/window.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ def __setup_ui_listeners(self, win):
4949
win.connect("delete-event", Gtk.main_quit)
5050

5151
def __setup_ui(self, win):
52-
btn_setting = Gtk.Button("Settings")
53-
btn_setting.set_margin_right(self.HORIZONTAL_MARGIN)
54-
btn_reload = Gtk.Button("Reload")
52+
self._btn_settings = Gtk.Button("Settings")
53+
self._btn_settings.set_margin_right(self.HORIZONTAL_MARGIN)
54+
self._btn_reload = Gtk.Button("Reload")
5555
btn_box = Gtk.HBox()
56-
btn_box.add(btn_setting)
57-
btn_box.add(btn_reload)
56+
btn_box.add(self._btn_settings)
57+
btn_box.add(self._btn_reload)
5858
self._listbox = Gtk.TreeView(self._list_store)
5959
self._listbox.set_headers_visible(False)
6060
self._listbox.connect("row-activated", self.__row_activated)
@@ -73,7 +73,7 @@ def __setup_ui(self, win):
7373
vbox.set_margin_left(self.VERTICAL_MARGIN)
7474
vbox.set_margin_right(self.VERTICAL_MARGIN)
7575
win.add(vbox)
76-
return btn_reload, btn_setting
76+
return self._btn_reload, self._btn_settings
7777

7878
def __create_window(self):
7979
win = Gtk.Window()

0 commit comments

Comments
 (0)