<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>hi all,<br>    my ui is as simple as possible, only 5 labels+5 slidebars. my point is easy: use sticks on my gamepad to control all five bars to move to the proper values.(this move may be fast to human but it should be resaonably slow for computer) and it goes on working in a few minutes then the window crashes. a visual C++ promt pops out and says "runtime error! pythonw.exe has requested the runtime to terminate it in an unusual way".<br><br>   and then, i notice that pythonw.exe ask for a few pages of memory every move and the memory doesn't go down. i am afraid there should be some bugs here.<br><br>the code generated by Qt designer is following:<br># -*- coding: utf-8 -*-<br><br># Form implementation generated from reading ui file 'simpleui.ui'<br>#<br># Created: Sat Apr 26 17:13:03 2014<br>#      by: PyQt4 UI code generator 4.10.4<br>#<br># WARNING! All changes made in this file will be lost!<br><br>from PyQt4 import QtCore, QtGui<br><br>try:<br>    _fromUtf8 = QtCore.QString.fromUtf8<br>except AttributeError:<br>    def _fromUtf8(s):<br>        return s<br><br>try:<br>    _encoding = QtGui.QApplication.UnicodeUTF8<br>    def _translate(context, text, disambig):<br>        return QtGui.QApplication.translate(context, text, disambig, _encoding)<br>except AttributeError:<br>    def _translate(context, text, disambig):<br>        return QtGui.QApplication.translate(context, text, disambig)<br><br>class Ui_MainWindow(object):<br>    def setupUi(self, MainWindow):<br>        MainWindow.setObjectName(_fromUtf8("MainWindow"))<br>        MainWindow.resize(675, 421)<br>        self.centralwidget = QtGui.QWidget(MainWindow)<br>        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))<br>        self.gridLayout_2 = QtGui.QGridLayout(self.centralwidget)<br>        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))<br>        self.gridLayout_3 = QtGui.QGridLayout()<br>        self.gridLayout_3.setMargin(10)<br>        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))<br>        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)<br>        self.gridLayout_3.addItem(spacerItem, 1, 0, 5, 1)<br>        self.label_10 = QtGui.QLabel(self.centralwidget)<br>        self.label_10.setObjectName(_fromUtf8("label_10"))<br>        self.gridLayout_3.addWidget(self.label_10, 4, 1, 1, 1)<br>        self.lySlider = QtGui.QSlider(self.centralwidget)<br>        self.lySlider.setEnabled(False)<br>        self.lySlider.setMinimum(900)<br>        self.lySlider.setMaximum(2100)<br>        self.lySlider.setOrientation(QtCore.Qt.Horizontal)<br>        self.lySlider.setObjectName(_fromUtf8("lySlider"))<br>        self.gridLayout_3.addWidget(self.lySlider, 2, 3, 1, 1)<br>        self.label_9 = QtGui.QLabel(self.centralwidget)<br>        self.label_9.setObjectName(_fromUtf8("label_9"))<br>        self.gridLayout_3.addWidget(self.label_9, 3, 1, 1, 1)<br>        self.label_7 = QtGui.QLabel(self.centralwidget)<br>        self.label_7.setObjectName(_fromUtf8("label_7"))<br>        self.gridLayout_3.addWidget(self.label_7, 1, 1, 1, 1)<br>        self.rySlider = QtGui.QSlider(self.centralwidget)<br>        self.rySlider.setEnabled(False)<br>        self.rySlider.setMinimum(900)<br>        self.rySlider.setMaximum(2100)<br>        self.rySlider.setOrientation(QtCore.Qt.Horizontal)<br>        self.rySlider.setObjectName(_fromUtf8("rySlider"))<br>        self.gridLayout_3.addWidget(self.rySlider, 4, 3, 1, 1)<br>        self.label_11 = QtGui.QLabel(self.centralwidget)<br>        self.label_11.setObjectName(_fromUtf8("label_11"))<br>        self.gridLayout_3.addWidget(self.label_11, 5, 1, 1, 1)<br>        self.rxSlider = QtGui.QSlider(self.centralwidget)<br>        self.rxSlider.setEnabled(False)<br>        self.rxSlider.setMinimum(900)<br>        self.rxSlider.setMaximum(2100)<br>        self.rxSlider.setOrientation(QtCore.Qt.Horizontal)<br>        self.rxSlider.setObjectName(_fromUtf8("rxSlider"))<br>        self.gridLayout_3.addWidget(self.rxSlider, 3, 3, 1, 1)<br>        self.label_8 = QtGui.QLabel(self.centralwidget)<br>        self.label_8.setObjectName(_fromUtf8("label_8"))<br>        self.gridLayout_3.addWidget(self.label_8, 2, 1, 1, 1)<br>        spacerItem1 = QtGui.QSpacerItem(40, 10, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)<br>        self.gridLayout_3.addItem(spacerItem1, 0, 1, 1, 1)<br>        spacerItem2 = QtGui.QSpacerItem(40, 10, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)<br>        self.gridLayout_3.addItem(spacerItem2, 0, 3, 1, 1)<br>        self.zSlider = QtGui.QSlider(self.centralwidget)<br>        self.zSlider.setEnabled(False)<br>        self.zSlider.setMinimum(900)<br>        self.zSlider.setMaximum(2100)<br>        self.zSlider.setOrientation(QtCore.Qt.Horizontal)<br>        self.zSlider.setObjectName(_fromUtf8("zSlider"))<br>        self.gridLayout_3.addWidget(self.zSlider, 5, 3, 1, 1)<br>        self.lxSlider = QtGui.QSlider(self.centralwidget)<br>        self.lxSlider.setEnabled(False)<br>        self.lxSlider.setMinimum(900)<br>        self.lxSlider.setMaximum(2100)<br>        self.lxSlider.setOrientation(QtCore.Qt.Horizontal)<br>        self.lxSlider.setObjectName(_fromUtf8("lxSlider"))<br>        self.gridLayout_3.addWidget(self.lxSlider, 1, 3, 1, 1)<br>        self.lxlabel = QtGui.QLabel(self.centralwidget)<br>        self.lxlabel.setObjectName(_fromUtf8("lxlabel"))<br>        self.gridLayout_3.addWidget(self.lxlabel, 1, 2, 1, 1)<br>        self.lylabel = QtGui.QLabel(self.centralwidget)<br>        self.lylabel.setObjectName(_fromUtf8("lylabel"))<br>        self.gridLayout_3.addWidget(self.lylabel, 2, 2, 1, 1)<br>        self.rxlabel = QtGui.QLabel(self.centralwidget)<br>        self.rxlabel.setObjectName(_fromUtf8("rxlabel"))<br>        self.gridLayout_3.addWidget(self.rxlabel, 3, 2, 1, 1)<br>        self.rylabel = QtGui.QLabel(self.centralwidget)<br>        self.rylabel.setObjectName(_fromUtf8("rylabel"))<br>        self.gridLayout_3.addWidget(self.rylabel, 4, 2, 1, 1)<br>        self.zlabel = QtGui.QLabel(self.centralwidget)<br>        self.zlabel.setObjectName(_fromUtf8("zlabel"))<br>        self.gridLayout_3.addWidget(self.zlabel, 5, 2, 1, 1)<br>        spacerItem3 = QtGui.QSpacerItem(32, 10, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)<br>        self.gridLayout_3.addItem(spacerItem3, 0, 2, 1, 1)<br>        self.gridLayout_2.addLayout(self.gridLayout_3, 0, 0, 1, 1)<br>        self.gridLayout = QtGui.QGridLayout()<br>        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))<br>        spacerItem4 = QtGui.QSpacerItem(200, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)<br>        self.gridLayout.addItem(spacerItem4, 0, 1, 1, 1)<br>        self.gridLayout_6 = QtGui.QGridLayout()<br>        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))<br>        self.label_4 = QtGui.QLabel(self.centralwidget)<br>        self.label_4.setObjectName(_fromUtf8("label_4"))<br>        self.gridLayout_6.addWidget(self.label_4, 1, 1, 1, 1)<br>        self.label = QtGui.QLabel(self.centralwidget)<br>        self.label.setObjectName(_fromUtf8("label"))<br>        self.gridLayout_6.addWidget(self.label, 0, 0, 1, 1)<br>        self.label_3 = QtGui.QLabel(self.centralwidget)<br>        self.label_3.setObjectName(_fromUtf8("label_3"))<br>        self.gridLayout_6.addWidget(self.label_3, 0, 1, 1, 1)<br>        self.label_2 = QtGui.QLabel(self.centralwidget)<br>        self.label_2.setObjectName(_fromUtf8("label_2"))<br>        self.gridLayout_6.addWidget(self.label_2, 1, 0, 1, 1)<br>        self.label_5 = QtGui.QLabel(self.centralwidget)<br>        self.label_5.setObjectName(_fromUtf8("label_5"))<br>        self.gridLayout_6.addWidget(self.label_5, 2, 0, 1, 1)<br>        self.label_6 = QtGui.QLabel(self.centralwidget)<br>        self.label_6.setObjectName(_fromUtf8("label_6"))<br>        self.gridLayout_6.addWidget(self.label_6, 2, 1, 1, 1)<br>        self.gridLayout.addLayout(self.gridLayout_6, 1, 1, 1, 1)<br>        spacerItem5 = QtGui.QSpacerItem(20, 100, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)<br>        self.gridLayout.addItem(spacerItem5, 1, 0, 1, 1)<br>        self.gridLayout_2.addLayout(self.gridLayout, 0, 1, 1, 1)<br>        self.gridLayout_5 = QtGui.QGridLayout()<br>        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))<br>        spacerItem6 = QtGui.QSpacerItem(18, 10, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)<br>        self.gridLayout_5.addItem(spacerItem6, 0, 0, 1, 1)<br>        self.gridLayout_2.addLayout(self.gridLayout_5, 1, 0, 1, 2)<br>        MainWindow.setCentralWidget(self.centralwidget)<br>        self.menubar = QtGui.QMenuBar(MainWindow)<br>        self.menubar.setGeometry(QtCore.QRect(0, 0, 675, 23))<br>        self.menubar.setObjectName(_fromUtf8("menubar"))<br>        MainWindow.setMenuBar(self.menubar)<br>        self.statusbar = QtGui.QStatusBar(MainWindow)<br>        self.statusbar.setObjectName(_fromUtf8("statusbar"))<br>        MainWindow.setStatusBar(self.statusbar)<br><br>        self.retranslateUi(MainWindow)<br>        QtCore.QMetaObject.connectSlotsByName(MainWindow)<br><br>    def retranslateUi(self, MainWindow):<br>        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))<br>        self.label_10.setText(_translate("MainWindow", "RY", None))<br>        self.label_9.setText(_translate("MainWindow", "RX", None))<br>        self.label_7.setText(_translate("MainWindow", "LX", None))<br>        self.label_11.setText(_translate("MainWindow", "Z", None))<br>        self.label_8.setText(_translate("MainWindow", "LY", None))<br>        self.lxlabel.setText(_translate("MainWindow", "0", None))<br>        self.lylabel.setText(_translate("MainWindow", "0", None))<br>        self.rxlabel.setText(_translate("MainWindow", "0", None))<br>        self.rylabel.setText(_translate("MainWindow", "0", None))<br>        self.zlabel.setText(_translate("MainWindow", "0", None))<br>        self.label_4.setText(_translate("MainWindow", "TextLabel", None))<br>        self.label.setText(_translate("MainWindow", "TextLabel", None))<br>        self.label_3.setText(_translate("MainWindow", "TextLabel", None))<br>        self.label_2.setText(_translate("MainWindow", "TextLabel", None))<br>        self.label_5.setText(_translate("MainWindow", "TextLabel", None))<br>        self.label_6.setText(_translate("MainWindow", "TextLabel", None))<br><br><br>if __name__ == "__main__":<br>    import sys<br>    app = QtGui.QApplication(sys.argv)<br>    MainWindow = QtGui.QMainWindow()<br>    ui = Ui_MainWindow()<br>    ui.setupUi(MainWindow)<br>    MainWindow.show()<br>    sys.exit(app.exec_())<br><br><br>                                    </div></body>
</html>