日韩久久久精品,亚洲精品久久久久久久久久久,亚洲欧美一区二区三区国产精品 ,一区二区福利

python pysidehelloworld

系統(tǒng) 2228 0
閱讀更多

# import our modules
import sys, time
from PySide.QtGui import QApplication,QMainWindow

# our MainWindow!!
class MainWindow(QMainWindow):
"""puffing!! construst our MainWindow"""

def __init__(self, arg):
super(MainWindow, self).__init__()
self.arg = arg
self.initGUI() # belong to MainWindow

# def GUI
def initGUI(self):
self.setWindowTitle("MainWindow")
self.setGeometry(300,300,300,300)
self.show()

if __name__ == '__main__':
# exception handling
try:
myApp = QApplication(sys.argv)
mywindow = MainWindow(0)
myApp.exec_()
sys.exit(0)

except NameError:
print("Name Error:", sys.exc_info()[1])
except SystemExit:
print("Closing Window...")
except Exception:
print(sys.exc_info()[1])



更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯(lián)系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發(fā)表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 同江市| 商洛市| 偃师市| 兴和县| 久治县| 抚宁县| 马龙县| 体育| 赤城县| 西吉县| 刚察县| 长岭县| 赞皇县| 聂拉木县| 贡觉县| 永修县| 东山县| 固安县| 什邡市| 榆社县| 府谷县| 尉氏县| 疏勒县| 庐江县| 鄱阳县| 和硕县| 区。| 塔城市| 仁布县| 高邮市| 福建省| 榆树市| 黑龙江省| 惠州市| 湘潭县| 淮北市| 崇明县| 五河县| 容城县| 三台县| 沂南县|