#!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################################### # Copyright (C) 2007 Ryan Kavanagh # # This program is free software; you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # # the Free Software Foundation; either version 2 of the License, or # # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # # with this program; if not, write to the Free Software Foundation, Inc., # # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # You may contact the author at ryanakca@kubuntu.org # # Thanks to CakeProphet for his tremendous help # # Character to number and number to character based on John Dell'Aquila's # # implementation of Bruce Schneier's Solitaire Encryption Alogrithm # # Solitaire encryption: # # Copyright (C) 1999 Mordy Ovits , GNU GPL, # # Available from http://www.schneier.com/code/pysol.zip # ########################################################################### import sys from PyQt4 import QtCore, QtGui from kcipher_ui import Ui_MainWindow class StartKCipher(QtGui.QMainWindow): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.ui = Ui_MainWindow() self.ui.setupUi(self) # Lets connect the signals to our slots! # Translate button QtCore.QObject.connect(self.ui.translateButton, QtCore.SIGNAL("clicked()"),translate) def translate(self): print "hello" if __name__ == "__main__": app = QtGui.QApplication(sys.argv) myapp = StartKCipher() myapp.show() sys.exit(app.exec_())