Changeset 186:a808eda90d15 for src/mlx/gui
- Timestamp:
- 05/16/12 18:22:04 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/prefs.py
r183 r186 299 299 mainAlignment = gtk.Alignment(xalign = 0.0, yalign = 0.0, 300 300 xscale = 1.0, yscale = 0.0) 301 mainAlignment.set_padding(padding_top = 16, padding_bottom = 8,301 mainAlignment.set_padding(padding_top = 0, padding_bottom = 8, 302 302 padding_left = 4, padding_right = 4) 303 303 mainBox = gtk.VBox() 304 304 mainAlignment.add(mainBox) 305 305 306 guiBox = self._createFrame(mainBox, xstr("prefs_frame_gui")) 307 306 308 languageBox = gtk.HBox() 307 mainBox.pack_start(languageBox, False, False, 4)309 guiBox.pack_start(languageBox, False, False, 4) 308 310 309 311 label = gtk.Label(xstr("prefs_language")) … … 334 336 self._hideMinimizedWindow.set_use_underline(True) 335 337 self._hideMinimizedWindow.set_tooltip_text(xstr("prefs_hideMinimizedWindow_tooltip")) 336 mainBox.pack_start(self._hideMinimizedWindow, False, False, 4) 338 guiBox.pack_start(self._hideMinimizedWindow, False, False, 4) 339 340 onlineBox = self._createFrame(mainBox, xstr("prefs_frame_online")) 337 341 338 342 self._onlineGateSystem = gtk.CheckButton(xstr("prefs_onlineGateSystem")) 339 343 self._onlineGateSystem.set_use_underline(True) 340 344 self._onlineGateSystem.set_tooltip_text(xstr("prefs_onlineGateSystem_tooltip")) 341 mainBox.pack_start(self._onlineGateSystem, False, False, 4)345 onlineBox.pack_start(self._onlineGateSystem, False, False, 4) 342 346 343 347 self._onlineACARS = gtk.CheckButton(xstr("prefs_onlineACARS")) 344 348 self._onlineACARS.set_use_underline(True) 345 349 self._onlineACARS.set_tooltip_text(xstr("prefs_onlineACARS_tooltip")) 346 mainBox.pack_start(self._onlineACARS, False, False, 4) 350 onlineBox.pack_start(self._onlineACARS, False, False, 4) 351 352 simulatorBox = self._createFrame(mainBox, xstr("prefs_frame_simulator")) 347 353 348 354 self._flareTimeFromFS = gtk.CheckButton(xstr("prefs_flaretimeFromFS")) 349 355 self._flareTimeFromFS.set_use_underline(True) 350 356 self._flareTimeFromFS.set_tooltip_text(xstr("prefs_flaretimeFromFS_tooltip")) 351 mainBox.pack_start(self._flareTimeFromFS, False, False, 4)357 simulatorBox.pack_start(self._flareTimeFromFS, False, False, 4) 352 358 353 359 self._syncFSTime = gtk.CheckButton(xstr("prefs_syncFSTime")) 354 360 self._syncFSTime.set_use_underline(True) 355 361 self._syncFSTime.set_tooltip_text(xstr("prefs_syncFSTime_tooltip")) 356 mainBox.pack_start(self._syncFSTime, False, False, 4)362 simulatorBox.pack_start(self._syncFSTime, False, False, 4) 357 363 358 364 self._usingFS2Crew = gtk.CheckButton(xstr("prefs_usingFS2Crew")) 359 365 self._usingFS2Crew.set_use_underline(True) 360 366 self._usingFS2Crew.set_tooltip_text(xstr("prefs_usingFS2Crew_tooltip")) 361 mainBox.pack_start(self._usingFS2Crew, False, False, 4)367 simulatorBox.pack_start(self._usingFS2Crew, False, False, 4) 362 368 363 369 pirepBox = gtk.HBox() 364 mainBox.pack_start(pirepBox, False, False, 4)370 mainBox.pack_start(pirepBox, False, False, 8) 365 371 366 372 label = gtk.Label(xstr("prefs_pirepDirectory")) … … 379 385 380 386 return mainAlignment 387 388 def _createFrame(self, mainBox, label): 389 """Create a frame with an inner alignment and VBox. 390 391 Return the vbox.""" 392 frame = gtk.Frame(label = label) 393 mainBox.pack_start(frame, False, False, 4) 394 alignment = gtk.Alignment(xalign = 0.0, yalign = 0.0, 395 xscale = 1.0, yscale = 0.0) 396 alignment.set_padding(padding_top = 4, padding_bottom = 0, 397 padding_left = 0, padding_right = 0) 398 frame.add(alignment) 399 vbox = gtk.VBox() 400 alignment.add(vbox) 401 402 return vbox 381 403 382 404 def _setLanguage(self, language):
Note:
See TracChangeset
for help on using the changeset viewer.