-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddKalaForm.py
31 lines (28 loc) · 876 Bytes
/
addKalaForm.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
__author__ = 'mehdi'
import sys
from welcomemsg import *
class AddForm(QtGui.QDialog):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
self.ui = Ui_MainWindow()
self.ui.setupUi(self)
QtCore.QObject.connect(self.ui.pushButton, QtCore.SIGNAL('clicked()'),self.
dispmessage)
QtCore.QObject.connect(self.ui.actionExit, QtCore.SIGNAL('triggered()'),self.
ExitApp)#baayad hatman trigger() baashad
def dispmessage(self):
A=self.ui.ID.text()
B=self.ui.Name.text()
C=self.ui.Cost.text()
print A
print B
print C
#self.clientsocket.send((A,B,C))
self.close()
def ExitApp(self):
self.close()
if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
myapp = AddForm()
myapp.show()
sys.exit(app.exec_())