PyQt4模块, 使用Qt Designer 设计界面ui文件转换成py文件,pyqt4py,PyQt4模块, 使用Q
PyQt4模块, 使用Qt Designer 设计界面ui文件转换成py文件,pyqt4py,PyQt4模块, 使用Q
PyQt4模块, 使用Qt Designer 设计界面ui文件,并使用pyuic转换成py文件
运行终端,到ui文件夹,运行pyuic4 xx.ui > xx.py 可以得到xx.py文件
# -*- coding: utf-8 -*-# Form implementation generated from reading ui file 'test.ui'## Created: Tue Jan 29 11:35:32 2013# by: PyQt4 UI code generator 4.9.6## WARNING! All changes made in this file will be lost!from PyQt4 import QtCore, QtGuitry: _fromUtf8 = QtCore.QString.fromUtf8except AttributeError: def _fromUtf8(s): return stry: _encoding = QtGui.QApplication.UnicodeUTF8 def _translate(context, text, disambig): return QtGui.QApplication.translate(context, text, disambig, _encoding)except AttributeError: def _translate(context, text, disambig): return QtGui.QApplication.translate(context, text, disambig)class Ui_notepad(object): def setupUi(self, notepad): notepad.setObjectName(_fromUtf8("notepad")) notepad.resize(539, 370) self.centralwidget = QtGui.QWidget(notepad) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.button_open = QtGui.QPushButton(self.centralwidget) self.button_open.setGeometry(QtCore.QRect(70, 30, 75, 23)) self.button_open.setObjectName(_fromUtf8("button_open")) self.close = QtGui.QPushButton(self.centralwidget) self.close.setGeometry(QtCore.QRect(180, 30, 75, 23)) self.close.setObjectName(_fromUtf8("close")) self.eidit_window = QtGui.QTextEdit(self.centralwidget) self.eidit_window.setGeometry(QtCore.QRect(40, 70, 261, 151)) self.eidit_window.setObjectName(_fromUtf8("eidit_window")) notepad.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(notepad) self.menubar.setGeometry(QtCore.QRect(0, 0, 539, 20)) self.menubar.setObjectName(_fromUtf8("menubar")) notepad.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(notepad) self.statusbar.setObjectName(_fromUtf8("statusbar")) notepad.setStatusBar(self.statusbar) self.retranslateUi(notepad) QtCore.QMetaObject.connectSlotsByName(notepad) def retranslateUi(self, notepad): notepad.setWindowTitle(_translate("notepad", "MainWindow", None)) self.button_open.setText(_translate("notepad", "Open File", None)) self.close.setText(_translate("notepad", "CLOSE", None))#该片段来自于http://byrx.net
相关内容
- S先生与P先生谜题,谜题,http://baike
- python搜索指定目录的代码演示,python演示,#-----------
- python自定义isnumber函数判断字符串是否为数字,pythoni
- Python动态生成中文验证码,python中文验证码,# -*- codin
- 网络小说下载器,,只能用于飞库网,改动字符
- Learn Python By Practice — list,pythonpractice,import sysde
- Python矩阵乘法,python矩阵,def matrixMu
- IP地址与Bigint转换,IP地址Bigint转换,import sysde
- python抓取网页及网页上所有连接的演示代码,python抓取
- 批量下载图片,图片,#!/usr/bin/e
评论关闭