-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdialog.py
49 lines (40 loc) · 1003 Bytes
/
dialog.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/python2
import sys
from PyQt4.QtGui import *
from PyQt4.QtCore import *
import os
import time
def window():
app = QApplication(sys.argv)
w = QWidget()
#b = QPushButton(w)
#b.setText("See")
#b.move(120,100)
#b.clicked.connect(showdialog)
w.setWindowTitle("All connected Ips in the Network")
#w.show()
showdialog()
sys.exit(app.exec_())
def showdialog():
msg = QMessageBox()
msg.setIcon(QMessageBox.Information)
z="hi"
msg.setText(z)
#print dir(msg)
showdialog2()
#msg.buttonClicked.connect(msgbtn)
msg.exec_()
#print "value of pressed message box button:", retval
def showdialog2():
msg = QMessageBox()
msg.setIcon(QMessageBox.Information)
z="hi2"
msg.setText(z)
#print dir(msg)
#msg.buttonClicked.connect(msgbtn)=
retval = msg.exec_()
#print "value of pressed message box button:", retval
def msgbtn(i):
print "Button pressed is:",i.text()
if __name__ == '__main__':
window()