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

python pysidehelloworld

系統(tǒng) 2024 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元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長非常感激您!手機(jī)微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

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

發(fā)表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 灵石县| 杭州市| 万荣县| 米泉市| 仪征市| 青冈县| 潼关县| 广元市| 连云港市| 潍坊市| 抚宁县| 吴忠市| 九江市| 饶阳县| 诸城市| 红原县| 本溪市| 马尔康县| 榆中县| 长宁区| 德化县| 沅陵县| 华蓥市| 丁青县| 凤冈县| 会泽县| 东乌| 五家渠市| 桓仁| 岳阳县| 龙川县| 莱阳市| 广水市| 兴山县| 田阳县| 若羌县| 保康县| 玛纳斯县| 双辽市| 玉门市| 巨野县|