コード例 #1
0
ファイル: studioPlayer.py プロジェクト: subing85/package
 def __init__(self, **kwargs):        
     super(Player, self).__init__()
     uic.loadUi(UI_FILE, self) 
       
     self.footagePath = None
     self.extension = 'jpg'
     self.resolution = [422, 237]        
     
     if 'path' in kwargs:
         self.footagePath = kwargs['path']        
     if 'extension' in kwargs:
         self.extension = kwargs['extension']
     if 'resolution' in kwargs:
         self.resolution = kwargs['resolution'] 
  
     self.mediaObjects = True
     self.fps = 25.00          
     self.imageList = self.getFiles()
  
     style = studioStylesheet.Stylesheet(self) # set the ui style sheet
     style.setStylesheet()
     self.qtd = studioQtdress.QtDress(None)        
     self.defaultUiSettings()
     self.setIconAllWidgets()
     
     self.action_backword.triggered.connect(self.backword)
     self.action_forward.triggered.connect(self.forward)
     self.action_play.triggered.connect(self.playAndPause)
     self.action_stop.triggered.connect(self.stop)
     self.slider.valueChanged.connect(self.sliderPlay)
     QtGui.QShortcut (QtGui.QKeySequence ('space'), self, self.playAndPause)
     QtGui.QShortcut (QtGui.QKeySequence ('left'), self, self.forward) 
     QtGui.QShortcut (QtGui.QKeySequence ('right'), self, self.backword)
コード例 #2
0
    def defaultUiSettings(self):
        self.setWindowTitle('Studio PIPE v0.1')
        self.setWindowIcon(QtGui.QIcon(os.path.join(ICON_PATH,
                                                    'launcher.png')))
        self.resize(QtCore.QSize(1300, 900))
        self.label_package.setText(PACKAGE_PATH)
        self.splitter_in.setSizes([198, 537, 500])
        self.splitter_out.setSizes([518, 180])
        self.groupBox_toolbar.hide()
        self.treeWidget.hide()
        self.treeWidget.setAlternatingRowColors(True)
        self.treeWidget.setSortingEnabled(True)

        self.action_treeDisplay.setCheckable(True)
        self.action_treeDisplay.setChecked(True)

        self.action_groupDisplay.setCheckable(True)
        self.action_groupDisplay.setChecked(False)

        style = studioStylesheet.Stylesheet(self)
        style.setStylesheet()
        self.setIconAllWidgets()
        self.qtd.setToolBar(None, [
            self.action_addon, self.action_update, self.action_remove,
            self.action_updateAll, self.action_reload
        ], self.verticalLayout_toolbar, QtCore.Qt.Vertical, True)
        self.loadBucket()
コード例 #3
0
ファイル: studioFlash.py プロジェクト: subing85/package
    def __init__(self, parent=None):
        super(ShowUI, self).__init__(parent)

        style = studioStylesheet.Stylesheet(self)  # set the ui style sheet
        style.setStylesheet()

        self.shows = studioShows.Shows('None')  # get show details

        self.setupUi()
コード例 #4
0
ファイル: studioPlayer.py プロジェクト: subing85/package
 def defaultUiSettings(self):        
     self.setWindowTitle('Studio PLAYer v0.1')
     self.setWindowIcon(QtGui.QIcon(os.path.join(ICON_PATH, 'player.png')))
     self.resize(QtCore.QSize(432, 324))
     self.slider.setMinimum(1)   
     self.slider.setMaximum(len(self.imageList))                               
     style = studioStylesheet.Stylesheet(self)
     style.setStylesheet()                        
     self.qtd.setToolBar(None,
                         [self.action_backword, self.action_play, self.action_stop,
                          self.action_forward],
                          self.horizontalLayout_control,
                          QtCore.Qt.Horizontal, True)
コード例 #5
0
    def __init__(self, parent=None, **kwargs):
        super(PmaskUI, self).__init__(parent)

        self.bucket = kwargs['bucket']
        self.step = kwargs['step']
        self.cube = kwargs['cube']
        self.cube_data = kwargs['cube_data']

        style = studioStylesheet.Stylesheet(self)  # set the ui style sheet
        style.setStylesheet()

        self.setupUi()
        self.setSetpAttributes()
コード例 #6
0
    def __init__(self, *args):
        super(PipeUI, self).__init__(*args)
        uic.loadUi(UI_FILE, self)

        try:
            __file__
        except NameError:
            __file__ = sys.argv[0]

        console = studioConsole.Console()
        console.stdout().messageWritten.connect(
            self.textEdit_output.insertPlainText)

        style = studioStylesheet.Stylesheet(
            self.centralwidget)  # set the ui style sheet
        style.setStylesheet()
        self.qtd = studioQtdress.QtDress(None)
        # replace with bucket
        self.spointer = studioPointer.Pointer()
        self._stepsList = None

        self._currentLayout = 'treelayout'
        # self._currentLayout = 'grouplayout'

        self.align = QtCore.Qt.AlignHCenter | QtCore.Qt.AlignVCenter | QtCore.Qt.AlignCenter

        self.action_addon.triggered.connect(self.createStepItem)
        self.action_update.triggered.connect(self.updateStepItem)
        self.action_remove.triggered.connect(self.removeStepItem)
        self.action_updateAll.triggered.connect(self.updateAllStepItem)
        self.action_reload.triggered.connect(self.reloadStepItem)

        self.action_treeDisplay.triggered.connect(
            partial(self.setDisplay, self.action_treeDisplay,
                    self.action_groupDisplay))
        self.action_groupDisplay.triggered.connect(
            partial(self.setDisplay, self.action_groupDisplay,
                    self.action_treeDisplay))

        self.treeWidget.itemClicked.connect(self.currentItemSelect)

        self.defaultUiSettings()
コード例 #7
0
ファイル: studioLauncher.py プロジェクト: subing85/package
 def defaultUiSettings(self):
     self.setWindowTitle ('Studio Launc-HER v0.1')
     self.setWindowIcon(QtGui.QIcon(os.path.join(ICON_PATH, 'launcher.png')))
     self.resize(QtCore.QSize(800, 500))
     self.label_package.setText(PACKAGE_PATH)
     # set the ui style sheet
     style = studioStylesheet.Stylesheet(self)
     style.setStylesheet()
     
     # set the show icon  
     self.qt.setIcon(ICON_PATH, width=470, height=150, lock=True)
     
     sc = studioConfig.Config(config_file=self.shows_path)
     sc.getConfigData()
     if 'Shows' not in sc._validData:
         warnings.warn('Show not found', Warning)
         return None            
     showList = sc._validData['Shows'] 
     index = 1
     while index < showList.__len__() + 1: 
         for show in showList:                        
             order = showList[show]['order']
             if order != index:
                 continue
             button = QtGui.QPushButton(self.groupBox_shows)
             button.setObjectName('button_{}'.format(show.upper()))
             button.setText(show)  
             button.setDefault(True)  # button.setFlat(True)  
             button.setCheckable(True)  
             button.setToolTip(showList[show]['longName'])
             self.qt.qwidget = button          
             self.qt.setIcon(ICON_PATH, width=100, height=60, lock=True)                              
             self.verticalLayout.addWidget(button)
             button.clicked.connect(partial(self.setApplications, show, showList[show], button))
             index += 1 
     spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
     self.verticalLayout.addItem(spacerItem)
コード例 #8
0
ファイル: genericPublish_ui.py プロジェクト: subing85/package
 def __init__(self):
     self.setupUi()
     style = studioStylesheet.Stylesheet(
         self.mainWindow)  # set the ui style sheet
     style.setStylesheet()