paip.python pyqt 加载ui 方法使用connect总结attilax
paip.python pyqt 加载ui 方法使用connect总结attilax
作者Attilax 艾龙, EMAIL:1466519819@qq.com
来源:attilax的专栏
地址:http://blog.csdn.net/attilax
from PyQt4 import *
import Ui_mainw
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from PyQt4.QtWebKit import *
from PyQt4 import QtCore, QtGui, uic
import sys
def methodx():
print("aa")
#muse debu g f5 tsai nen kejye output aa.in eric5
url="http://baidu.com"
app=QApplication(sys.argv)
dlg=uic.loadUi("mainw.ui")
QtCore.QObject.connect(dlg.pushButton,SIGNAL("clicked()"),methodx)
dlg.webView.load(QUrl( url));
dlg.show()
app.exec_()
作者Attilax 艾龙, EMAIL:1466519819@qq.com
来源:attilax的专栏
地址:http://blog.csdn.net/attilax
from PyQt4 import *
import Ui_mainw
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from PyQt4.QtWebKit import *
from PyQt4 import QtCore, QtGui, uic
import sys
def methodx():
print("aa")
#muse debu g f5 tsai nen kejye output aa.in eric5
url="http://baidu.com"
app=QApplication(sys.argv)
dlg=uic.loadUi("mainw.ui")
QtCore.QObject.connect(dlg.pushButton,SIGNAL("clicked()"),methodx)
dlg.webView.load(QUrl( url));
dlg.show()
app.exec_()