Advertisement
Guest User

Echoplex

a guest
Apr 18th, 2009
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. import sys
  2. from PyQt4 import QtGui, QtCore
  3. from ui import Ui_Dialog as Dlg
  4.  
  5. class Window(QtGui.QDialog, Dlg):
  6.   def __init__(self):
  7.     QtGui.QDialog.__init__(self)
  8.     self.setupUi(self)
  9.     self.connect(self.pushButton,
  10.                  QtCore.SIGNAL("clicked()"), self.onSpeichern)
  11.   def onSpeichern(self):
  12.     f = open('save.txt', 'w')
  13.     f = self.textEdit.toPlainText()
  14.     f.close()
  15. app = QtGui.QApplication(sys.argv)
  16. dialog = Window()
  17. dialog.show()
  18. sys.exit(app.exec_())
  19.    
  20.  
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement