Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.3 AppCore4.dll_Python_Qt_Pyside_Crash - Fatal编程技术网

Python 3.3 AppCore4.dll

Python 3.3 AppCore4.dll,python,qt,pyside,crash,Python,Qt,Pyside,Crash,我正在尝试编译以下提供的Python3.3代码: 我已经安装了qt4.8.4vs2012、pyside1.1.2、python3.3和qt5 import sys from PySide.QtCore import * from PySide.QtGui import * import time app = QApplication(sys.argv) try: #Default Values due = QTime.currentTime() message =

我正在尝试编译以下提供的Python3.3代码:

我已经安装了qt4.8.4vs2012、pyside1.1.2、python3.3和qt5

import sys
from PySide.QtCore import *
from PySide.QtGui import *
import time

app = QApplication(sys.argv)

try:
    #Default Values
    due = QTime.currentTime()
    message = "Alert!"

    if len(sys.argv) < 2:
        raise ValueError

    hours, minutes = sys.argv[1].split(":")
    due = QTime(int(hours), int(minutes))

    if not due.isValid():
        raise ValueError

    if len(sys.argv) > 2:
        message = " ".join(sys.argv[2:])

        #python firstTutorial.py 15:36 This is my message

except ValueError:
    message = "Usage: firstTutorial.py HH:MM [optional message]" #24 hour clock


while QTime.currentTime() < due:
    time.sleep(10)

label = QLabel("<font color=red size=72><b>" +  message + "</b></font>")
label.setWindowFlags(Qt.SplashScreen) #Keine Fenstereigenschaften nutzen
label.show()

QTimer.singleShot(20000, app.quit) #20 seconds till quit SIGNAL/SLOT
app.exec_()
导入系统 从PySide.QtCore导入* 从PySide.QtGui导入* 导入时间 app=QApplication(sys.argv) 尝试: #默认值 due=QTime.currentTime() message=“警报!” 如果len(系统argv)<2: 升值误差 小时,分钟=sys.argv[1]。拆分(“:”) 到期=QTime(整数(小时),整数(分钟)) 如果未到期。isValid(): 升值误差 如果len(sys.argv)>2: message=”“.join(sys.argv[2:]) #python firstTutorial.py 15:36这是我的消息 除值错误外: message=“用法:firstTutorial.py HH:MM[可选消息]”#24小时时钟 当QTime.currentTime()到期时: 时间。睡眠(10) label=QLabel(“+message+”) label.setWindowFlags(Qt.SplashScreen)#Keine Fensteregenschaften nutzen label.show() QTimer.singleShot(20000,应用程序退出)#退出信号/插槽前20秒 app.exec() 但是在我给出参数“15:23”之后,我得到了一个Python Appcrash

ProblemSignature:Problemereignsname:APPCRASH
Anwendungsname:python.exe Anwendungsversion:0.0.0
Anwendungszeitstempel:5194070d fehlermodulename:QtCore4.dll
FehlerModuleVersion:4.8.4.0 FehlerModuleZeitsTempel:50eb4eec
Ausnahmecode:c0000005 Ausnahmeoffset:0000000000033810
Betriebsystemversion:6.2.9200.2.0.0.256.49 GebietSchema ID:1031
Zusatzin地层1:c436 Zusatzin地层 2:c436a4fc38414d2d1792ffc3e15f3c19 ZUSATZIN3:664a
Zusatzin信息4:664A8423ADC2000B0B283F7135A059D

重新安装了QT、Python和PySide,但没有任何效果


有什么建议吗?

它在哪里崩溃?你通过了吗?调试器对我不起作用。我一运行文件,它就崩溃了。没有任何命令行参数,该程序对我来说运行良好。