Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CreateTileTexture_UI
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'main_ui.ui'
#
# Created: Mon Jan 04 22:40:20 2016
# 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_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(633, 563)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout_2 = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.groupBox = QtGui.QGroupBox(self.centralwidget)
self.groupBox.setObjectName("groupBox")
self.verticalLayout = QtGui.QVBoxLayout(self.groupBox)
self.verticalLayout.setObjectName("verticalLayout")
self.textureList = QtGui.QListView(self.groupBox)
self.textureList.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
self.textureList.setDragEnabled(True)
self.textureList.setDragDropMode(QtGui.QAbstractItemView.NoDragDrop)
self.textureList.setDefaultDropAction(QtCore.Qt.MoveAction)
self.textureList.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)
self.textureList.setObjectName("textureList")
self.verticalLayout.addWidget(self.textureList)
self.verticalLayout_2.addWidget(self.groupBox)
self.groupBox_2 = QtGui.QGroupBox(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth())
self.groupBox_2.setSizePolicy(sizePolicy)
self.groupBox_2.setObjectName("groupBox_2")
self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox_2)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.formLayout = QtGui.QFormLayout()
self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
self.formLayout.setHorizontalSpacing(2)
self.formLayout.setVerticalSpacing(1)
self.formLayout.setObjectName("formLayout")
self.label = QtGui.QLabel(self.groupBox_2)
self.label.setObjectName("label")
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
self.tileNum = QtGui.QSpinBox(self.groupBox_2)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tileNum.sizePolicy().hasHeightForWidth())
self.tileNum.setSizePolicy(sizePolicy)
self.tileNum.setMinimum(1)
self.tileNum.setProperty("value", 5)
self.tileNum.setObjectName("tileNum")
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.tileNum)
self.label_2 = QtGui.QLabel(self.groupBox_2)
self.label_2.setText("")
self.label_2.setObjectName("label_2")
self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_2)
self.label_3 = QtGui.QLabel(self.groupBox_2)
self.label_3.setText("")
self.label_3.setObjectName("label_3")
self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_3)
self.lowOption = QtGui.QCheckBox(self.groupBox_2)
self.lowOption.setChecked(True)
self.lowOption.setObjectName("lowOption")
self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.lowOption)
self.addAlpha = QtGui.QCheckBox(self.groupBox_2)
self.addAlpha.setObjectName("addAlpha")
self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.addAlpha)
self.verticalLayout_3.addLayout(self.formLayout)
self.verticalLayout_2.addWidget(self.groupBox_2)
self.createBtn = QtGui.QPushButton(self.centralwidget)
self.createBtn.setMinimumSize(QtCore.QSize(0, 50))
self.createBtn.setStyleSheet("font: 16pt \"MS UI Gothic\";")
self.createBtn.setObjectName("createBtn")
self.verticalLayout_2.addWidget(self.createBtn)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 633, 20))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox.setTitle(QtGui.QApplication.translate("MainWindow", "タイル化したいテクスチャをドラッグ&ドロップ", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox_2.setTitle(QtGui.QApplication.translate("MainWindow", "Options", None, QtGui.QApplication.UnicodeUTF8))
self.label.setText(QtGui.QApplication.translate("MainWindow", "1行のタイル数", None, QtGui.QApplication.UnicodeUTF8))
self.lowOption.setText(QtGui.QApplication.translate("MainWindow", "列も行と同じ数にする(不足部分は黒で埋める)", None, QtGui.QApplication.UnicodeUTF8))
self.addAlpha.setText(QtGui.QApplication.translate("MainWindow", "アルファも結合する", None, QtGui.QApplication.UnicodeUTF8))
self.createBtn.setText(QtGui.QApplication.translate("MainWindow", "結合!!", None, QtGui.QApplication.UnicodeUTF8))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment