source: branches/active/character_customization/game/parpg/gui/dialogs.py @ 833

Revision 768, 971 bytes checked in by aspidites, 8 years ago (diff)

Patch by Aspidites

+ restart dialog pops up when the ok button is pressed

  • system needs to be implemented that tracks changes, and perhaps even applies them immediately
Line 
1#   This file is part of PARPG.
2
3#   PARPG is free software: you can redistribute it and/or modify
4#   it under the terms of the GNU General Public License as published by
5#   the Free Software Foundation, either version 3 of the License, or
6#   (at your option) any later version.
7
8#   PARPG is distributed in the hope that it will be useful,
9#   but WITHOUT ANY WARRANTY; without even the implied warranty of
10#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11#   GNU General Public License for more details.
12
13#   You should have received a copy of the GNU General Public License
14#   along with PARPG.  If not, see <http://www.gnu.org/licenses/>.
15
16from fife.extensions import pychan
17
18class RestartDialog(object):
19    def __init__(self):
20        self.window = pychan.loadXML('gui/restart_dialog.xml')
21        self.window.mapEvents({'closeButton': self.hide})
22
23    def hide(self):
24        self.window.hide()
25
26    def show(self):
27        self.window.show()
Note: See TracBrowser for help on using the repository browser.