Skip to content

Instantly share code, notes, and snippets.

@fereria
Created July 15, 2015 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fereria/897c4c040a2ce262f4e9 to your computer and use it in GitHub Desktop.
Save fereria/897c4c040a2ce262f4e9 to your computer and use it in GitHub Desktop.
.ui convert .py
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'selectionTest.ui'
#
# Created: Mon Jul 06 21:39:30 2015
# by: pyside-uic 0.2.15 running on PySide 1.2.2
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(217, 300)
self.verticalLayout = QtGui.QVBoxLayout(Form)
self.verticalLayout.setObjectName("verticalLayout")
self.listView = QtGui.QListView(Form)
self.listView.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)
self.listView.setObjectName("listView")
self.verticalLayout.addWidget(self.listView)
self.getBtn = QtGui.QPushButton(Form)
self.getBtn.setObjectName("getBtn")
self.verticalLayout.addWidget(self.getBtn)
self.selBtn = QtGui.QPushButton(Form)
self.selBtn.setObjectName("selBtn")
self.verticalLayout.addWidget(self.selBtn)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
self.getBtn.setText(QtGui.QApplication.translate("Form", "getSelection", None, QtGui.QApplication.UnicodeUTF8))
self.selBtn.setText(QtGui.QApplication.translate("Form", "setSelection", None, QtGui.QApplication.UnicodeUTF8))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment