From 75b9564e195ec77e68ddcbb42df39b11e325ec2c Mon Sep 17 00:00:00 2001 From: Leonardo Robol Date: Wed, 8 Apr 2009 22:24:11 +0200 Subject: [PATCH] Aggiunto songbook.py --- songbook-editor.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/songbook-editor.py b/songbook-editor.py index e69de29..46ef363 100755 --- a/songbook-editor.py +++ b/songbook-editor.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +from PyQt4 import QtGui, QtCore +from interface import * +from song import * + +class interface(QtGui.QMainWindow): + def __init__(self, parent=None): + super(interface, self).__init__(parent) + self.ui = Ui_MainWindow() + self.ui.setupUi(self) + + self.connect(self.ui.actionEsci_2, QtCore.SIGNAL("activated()"), self.exit_called) + + def exit_called(self): + print "TODO: Save data on exit" + +if __name__ == "__main__": + app = QtGui.QApplication(None) + widget = interface() + widget.show() + app.exec_() -- 2.1.4