forked from Mirrors/apostrophe
Cleanup of preferencesdialog class
parent
81a9b3fb71
commit
52def543fe
|
@ -30,12 +30,12 @@
|
|||
<property name="can_focus">False</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="margin_left">10</property>
|
||||
<property name="margin_right">10</property>
|
||||
<property name="margin_top">10</property>
|
||||
<property name="margin_bottom">10</property>
|
||||
<property name="margin_left">30</property>
|
||||
<property name="margin_right">30</property>
|
||||
<property name="margin_top">30</property>
|
||||
<property name="margin_bottom">30</property>
|
||||
<property name="row_spacing">10</property>
|
||||
<property name="column_spacing">11</property>
|
||||
<property name="column_spacing">10</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="Dark_mode_label">
|
||||
<property name="visible">True</property>
|
||||
|
|
|
@ -36,25 +36,4 @@ class PreferencesDialog(Gtk.Window):
|
|||
"""
|
||||
builder = get_builder('Preferences')
|
||||
new_object = builder.get_object("PreferencesWindow")
|
||||
# new_object.finish_initializing(builder)
|
||||
return new_object
|
||||
|
||||
def finish_initializing(self, builder):
|
||||
"""Called while initializing this instance in __new__
|
||||
|
||||
finish_initalizing should be called after parsing the ui definition
|
||||
and creating a PreferencesDialog object with it in order to
|
||||
finish initializing the start of the new PerferencesUberwriterDialog
|
||||
instance.
|
||||
|
||||
Put your initialization code in here and leave __init__ undefined.
|
||||
"""
|
||||
|
||||
# Get a reference to the builder and set up the signals.
|
||||
self.builder = builder
|
||||
self.ui = builder.get_ui(self, True)
|
||||
|
||||
# code for other initialization actions should be added here
|
||||
|
||||
def on_btn_close_clicked(self, widget, data=None):
|
||||
self.destroy()
|
||||
|
|
Loading…
Reference in New Issue