Created
May 6, 2014 14:02
-
-
Save fereria/8c3775aa2953ea4a9e92 to your computer and use it in GitHub Desktop.
Dial SpinBox ConnectTest .py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## -*- coding: utf-8 -*- | |
import sys | |
from PySide import QtCore, QtGui | |
from PySide.QtUiTools import QUiLoader | |
import remitools.lib.qt as remiQt | |
class dialtest(QtGui.QDialog): | |
""" | |
Dialの連携作成テスト | |
""" | |
uiFile = "E:/Bitbucket/scripttestdev/Qt/dialtest.ui" | |
width = 160 | |
height = 140 | |
def __init__(self): | |
super(dialtest, self).__init__(remiQt.getMayaWindow()) | |
self.ui = remiQt.loadUi(self.uiFile) | |
layout = QtGui.QVBoxLayout() | |
layout.addWidget(self.ui) | |
self.setLayout(layout) | |
self.resize(self.width,self.height) | |
# Signal.connect(Slot) | |
self.ui.dial.valueChanged.connect(self.ui.spinBox.setValue) | |
self.ui.spinBox.valueChanged.connect(self.ui.dial.setValue) | |
if __name__ == "__main__": | |
app = dialtest() | |
app.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment