Changeset 690:5ae4c108757e for src
- Timestamp:
- 10/20/15 15:23:41 (9 years ago)
- Branch:
- cef
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flight.py
r687 r690 1682 1682 label.set_mnemonic_widget(self._password) 1683 1683 1684 self._rememberButton = gtk.CheckButton(xstr("simbrief_remember_password")) 1685 self._rememberButton.set_use_underline(True) 1686 self._rememberButton.set_tooltip_text(xstr("simbrief_remember_tooltip")) 1687 table.attach(self._rememberButton, 1, 2, 2, 3, ypadding = 8) 1688 1684 1689 self.addCancelFlightButton() 1685 1690 … … 1689 1694 def activate(self): 1690 1695 """Activate the SimBrief setup page""" 1696 config = self._wizard.gui.config 1697 1698 self._userName.set_text(config.simBriefUserName) 1699 self._password.set_text(config.simBriefPassword) 1700 self._rememberButton.set_active(config.rememberSimBriefPassword) 1701 1691 1702 self._updateForwardButton() 1703 1692 1704 1693 1705 def _updateForwardButton(self): … … 1704 1716 self._wizard.nextPage() 1705 1717 else: 1718 config = self._wizard.gui.config 1719 1720 config.simBriefUserName = self._userName.get_text() 1721 1722 rememberPassword = self._rememberButton.get_active() 1723 config.simBriefPassword = \ 1724 self._password.get_text() if rememberPassword else "" 1725 config.rememberSimBriefPassword = rememberPassword 1726 1727 config.save() 1728 1706 1729 plan = self._getPlan() 1707 1730 print "plan:", plan
Note:
See TracChangeset
for help on using the changeset viewer.