summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dialogs.py1
-rw-r--r--src/ui.py18
2 files changed, 16 insertions, 3 deletions
diff --git a/src/dialogs.py b/src/dialogs.py
index 54f5de8..66c84e9 100644
--- a/src/dialogs.py
+++ b/src/dialogs.py
@@ -167,3 +167,4 @@ def getTextDialog():
return None
+
diff --git a/src/ui.py b/src/ui.py
index 74dc87e..9656137 100644
--- a/src/ui.py
+++ b/src/ui.py
@@ -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'))