Exemplo n.º 1
0
    def __init__(self, parent=None, **kwargs):
        super(Window, self).__init__(parent)

        self.current_show = None
        if 'show' in kwargs:
            self.current_show = kwargs['show']
        self.type = kwargs['type']
        self.value = kwargs['value']
        self.title = kwargs['title']
        self.label = kwargs['label']

        self.width = kwargs['width']
        self.height = kwargs['height']

        self.brows_directory = resources.getWorkspacePath()
        self.brows_directory = '/mnt/bkp/Icons gallery/icons_04'

        self.q_image, self.q_image_path = None, None

        # current input file
        self.file_path = os.path.join(resources.getInputPath(),
                                      '%s.json' % self.type)

        print 'db path', self.file_path

        self.connect = studioConnect.Connect(self.file_path, value=self.value)
        self.data, self.sort_data, self.all_input_data = self.connect.getInputData(
        )

        self.module, self.lable, self.version = platforms.get_tool_kit()

        self.setup_ui()
        self.load_widgets()
Exemplo n.º 2
0
 def getInputData(self):
     '''
     Description -function set for get the show input data.
         :paran <None>
         :return (<dict>, <list>)
         :example
             from studioPipe.api import studioShows
             ss = studioShows.Shows()
             ss.getInputData('my_super_hero')
     '''
     input_file = os.path.join(resources.getInputPath(), 'discipline.json')
     studio_input = studioConnect.Connect(file_path=input_file)
     data, sort_data, key_data = studio_input.getInputData()
     return data, sort_data, key_data
Exemplo n.º 3
0
 def getInputData(self):
     '''
     Description -function set for get the show input data.
         :paran <None>
         :return (<dict>, <list>, <dict>)
         :example
             from studioPipe.api import studioPreferences
             studio_preferences = studioPreferences.Connect()
             studio_preferences.getInputData()
     '''
     input_file = os.path.join(resources.getInputPath(), 'preferences.json')
     studio_input = studioConnect.Connect(file_path=input_file)
     data, sort_input_data, key_data = studio_input.getInputData()
     return data, sort_input_data, key_data