diff options
Diffstat (limited to '')
-rw-r--r-- | src/ui.py | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -499,9 +499,9 @@ class KPMainWindow(QtGui.QMainWindow): w.addAction(doodadAction) h = mb.addMenu('Help') - self.ha = h.addAction('About Koopatlas') - self.hb = h.addAction('Koopatlas Documentation') - self.hc = h.addAction('Keyboard Shortcuts') + self.ha = h.addAction('About Koopatlas', self.aboutDialog) + self.hb = h.addAction('Koopatlas Documentation', self.goToHelp) + # self.hc = h.addAction('Keyboard Shortcuts') def setupDocks(self): @@ -896,7 +896,19 @@ class KPMainWindow(QtGui.QMainWindow): # Help ######################## + @QtCore.pyqtSlot(bool) + def aboutDialog(self): + caption = "About Koopatlas" + + text = "<big><b>Koopatlas</b></big><br><br> The Koopatlas Editor is an editor for custom two dimensional world maps, for use with the Newer SMBWii world map engine. It should be included with its companion program, Koopuzzle, which will create tilesets compatible with Koopatlas.<br><br> Koopatlas was programmed by Treeki and Tempus of the Newer Team.<br><br> Find the website at html://www.newerteam.com for more information." + + msg = QtGui.QMessageBox.about(KP.mainWindow, caption, text) + + + @QtCore.pyqtSlot(bool) + def goToHelp(self): + QtGui.QDesktopServices().openUrl(QtCore.QUrl('http://www.newerteam.com/koopatlas-help')) |