33 |
self._init_utils() |
self._init_utils() |
34 |
self.SetClientSize(wxSize(366, 188)) |
self.SetClientSize(wxSize(366, 188)) |
35 |
|
|
36 |
self.btsave = wxButton(id=wxID_FRAGGLEDIALOGPREFSBTSAVE, label='Save', |
self.btsave = wxButton(id=wxID_FRAGGLEDIALOGPREFSBTSAVE, |
37 |
name='btsave', parent=self, pos=wxPoint(8, 168), size=wxSize(64, |
label='Save and Close', name='btsave', parent=self, |
38 |
16), style=0) |
pos=wxPoint(8, 168), size=wxSize(96, 16), style=0) |
39 |
EVT_BUTTON(self.btsave, wxID_FRAGGLEDIALOGPREFSBTSAVE, |
EVT_BUTTON(self.btsave, wxID_FRAGGLEDIALOGPREFSBTSAVE, |
40 |
self.OnBtsaveButton) |
self.OnBtsaveButton) |
41 |
|
|
42 |
self.button1 = wxButton(id=wxID_FRAGGLEDIALOGPREFSBUTTON1, |
self.button1 = wxButton(id=wxID_FRAGGLEDIALOGPREFSBUTTON1, |
43 |
label='Cancel', name='button1', parent=self, pos=wxPoint(80, 168), |
label='Cancel', name='button1', parent=self, pos=wxPoint(112, |
44 |
size=wxSize(56, 16), style=0) |
168), size=wxSize(56, 16), style=0) |
45 |
EVT_BUTTON(self.button1, wxID_FRAGGLEDIALOGPREFSBUTTON1, |
EVT_BUTTON(self.button1, wxID_FRAGGLEDIALOGPREFSBUTTON1, |
46 |
self.OnButton1Button) |
self.OnButton1Button) |
47 |
|
|
108 |
) |
) |
109 |
|
|
110 |
self.parent.preferencesCtl.saveConfig() |
self.parent.preferencesCtl.saveConfig() |
111 |
|
self.Hide() |
112 |
event.Skip() |
event.Skip() |
113 |
|
|
114 |
def loadConfig(self): |
def loadConfig(self): |