當前位置: 首頁>>代碼示例>>Python>>正文


Python baseadminnode.BaseAdminGtkNode類代碼示例

本文整理匯總了Python中flumotion.component.base.baseadminnode.BaseAdminGtkNode的典型用法代碼示例。如果您正苦於以下問題:Python BaseAdminGtkNode類的具體用法?Python BaseAdminGtkNode怎麽用?Python BaseAdminGtkNode使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了BaseAdminGtkNode類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

    def __init__(self, state, admin):
        BaseAdminGtkNode.__init__(self, state, admin, title=_("Component"))

        self._startTime = None
        self._debugging = None
        self._initialFluMask = ''
        self._initialGstMask = ''
開發者ID:ApsOps,項目名稱:flumotion-orig,代碼行數:7,代碼來源:componentnode.py

示例2: __init__

 def __init__(self, *args, **kwargs):
     BaseAdminGtkNode.__init__(self, *args, **kwargs)
     self._statistics = None
     self._shown = False
     self._stats = None
     self._link = None
     self._labels = {}
開發者ID:flyapen,項目名稱:UgFlu,代碼行數:7,代碼來源:admin_gtk.py

示例3: setUIState

 def setUIState(self, state):
     BaseAdminGtkNode.setUIState(self, state)
     self.model.clear()
     for profile in self.uiState.get("monitored-profiles"):
         self.stateAppend(self.uiState, "monitored-profiles", profile)
     for subkey, fileinfo in self.uiState.get("pending-files").items():
         self.stateSetitem(self.uiState, "pending-files", subkey, fileinfo)
開發者ID:osiloke,項目名稱:Flumotion-Transcoder,代碼行數:7,代碼來源:httpmonitor_admin_gtk.py

示例4: setUIState

    def setUIState(self, state):
        BaseAdminGtkNode.setUIState(self, state)
        if not self.widget:
            return

        self.haveMetadata(state.get('metadata', {}))
        self.haveCodecInfo(state.get('codec-info', {}))
開發者ID:flumotion-mirror,項目名稱:flumotion-flashmedia,代碼行數:7,代碼來源:admin_gtk.py

示例5: setDebugEnabled

    def setDebugEnabled(self, enabled):
        BaseAdminGtkNode.setDebugEnabled(self, enabled)
        if self._debugging:
            self._debugging.set_property('visible', enabled)

        self._initialFluMask = getDebug()
        self._initialGstMask = os.environ.get('GST_DEBUG', '')
開發者ID:ApsOps,項目名稱:flumotion-orig,代碼行數:7,代碼來源:componentnode.py

示例6: setUIState

 def setUIState(self, state):
     BaseAdminGtkNode.setUIState(self, state)
     if not self.uiStateHandlers:
         self.uiStateHandlers = {'wave': self.waveSet,
                                 'frequency': self.frequencySet,
                                 'samplerate': self.samplerateSet}
     for k, handler in self.uiStateHandlers.items():
         handler(state.get(k))
開發者ID:offlinehacker,項目名稱:flumotion,代碼行數:8,代碼來源:admin_gtk.py

示例7: setUIState

    def setUIState(self, uiState):
        BaseAdminGtkNode.setUIState(self, uiState)

        # Ick; we don't get these otherwise.
        for key in uiState.keys():
            val = uiState.get(key)
            if val is not None:
                self.stateSet(uiState, key, uiState.get(key))
開發者ID:ApsOps,項目名稱:flumotion-orig,代碼行數:8,代碼來源:componentnode.py

示例8: __init__

 def __init__(self, state, admin, effectName, title=None):
     """
     @param state: state of component this is a UI for
     @type  state: L{flumotion.common.planet.AdminComponentState}
     @param admin: the admin model that interfaces with the manager for us
     @type  admin: L{flumotion.admin.admin.AdminModel}
     """
     BaseAdminGtkNode.__init__(self, state, admin, title)
     self.effectName = effectName
開發者ID:ApsOps,項目名稱:flumotion-orig,代碼行數:9,代碼來源:effectsnode.py

示例9: setUIState

 def setUIState(self, state):
     # will only be called when we have a widget tree
     BaseAdminGtkNode.setUIState(self, state)
     self.widget.show_all()
     for feeder in state.get("feeders"):
         self.addFeeder(state, feeder)
     sel = self.treeview.get_selection()
     if sel is not None:
         sel.select_iter(self.treemodel.get_iter_first())
開發者ID:offlinehacker,項目名稱:flumotion,代碼行數:9,代碼來源:feedersnode.py

示例10: setUIState

 def setUIState(self, state):
     BaseAdminGtkNode.setUIState(self, state)
     if not self.uiStateHandlers:
         self.uiStateHandlers = {'signal': self.signalSet,
                                 'snr': self.snrSet,
                                 'ber': self.berSet,
                                 'unc': self.uncSet,
                                 'lock': self.lockSet}
     for k, handler in self.uiStateHandlers.items():
         handler(state.get(k))
開發者ID:xqueralt,項目名稱:flumotion-dvb,代碼行數:10,代碼來源:admin_gtk.py

示例11: __init__

 def __init__(self, state, admin):
     BaseAdminGtkNode.__init__(self, state, admin, title=_("Eaters"))
     # tree model is a model of id, uiState, StateWatcher
     # tree model contains eaters
     self.treemodel = None
     self.treeview = None
     self._selected = None # the watcher of the currently selected row
     self.labels = {}
     self._lastConnect = 0
     self._lastDisconnect = 0
開發者ID:ylatuya,項目名稱:Flumotion,代碼行數:10,代碼來源:eatersnode.py

示例12: __init__

 def __init__(self, state, admin):
     BaseAdminGtkNode.__init__(self, state, admin, title=_("Feeders"))
     # tree model is a model of id, uiState, StateWatcher, type
     # tree model contains feeders and their feeder clients
     # type is a str, 'feeder' or 'client'
     self.treemodel = None
     self.treeview = None
     self.selected = None
     self.labels = {}
     self._lastConnect = 0
     self._lastDisconnect = 0
開發者ID:offlinehacker,項目名稱:flumotion,代碼行數:11,代碼來源:feedersnode.py

示例13: setUIState

 def setUIState(self, state):
     BaseAdminGtkNode.setUIState(self, state)
     if self._path and state.hasKey('allow-browsing') \
        and state.get('allow-browsing'):
         self.browser.setBaseUri(state.get('stream-url'))
     else:
         self.browser.hide_all()
         warning = gtk.Label()
         warning.set_markup(_('Browsing files is not allowed.'))
         warning.show()
         self.widget.pack_start(warning)
開發者ID:ApsOps,項目名稱:flumotion-orig,代碼行數:11,代碼來源:admin_gtk.py

示例14: __init__

 def __init__(self, *args, **kwargs):
     BaseAdminGtkNode.__init__(self, *args, **kwargs)
     self._progress = None
     self._model = gtk.TreeStore(str, str, str, int)
     self._view = None
     self._errorText = None
     self._uiInitialized = False
     self._fields = {}
     self._valFormats = {}
     self._lblFormats = {}
     self._labels = {}
     self._iterIndex = {}
     self._targetsWarnings = {}
     self._targetsError = {}
     self._jobWarnings = []
     self._jobError = None
     self._status = None
開發者ID:osiloke,項目名稱:Flumotion-Transcoder,代碼行數:17,代碼來源:filetranscoder_admin_gtk.py

示例15: __init__

 def __init__(self, state, admin, title=None):
     BaseAdminGtkNode.__init__(self, state, admin, title)
     # create widget
     self.widget = gtk.Table(2, 1)
     self.radioButton = {}
     self.radioButton["backup"] = gtk.RadioButton(label="Backup")
     self.radioButton["master"] = gtk.RadioButton(
         self.radioButton["backup"],
         label="Master")
     self.radioButtonHandlers = {}
     currentRow = 0
     for eaterName in self.radioButton:
         self.widget.attach(self.radioButton[eaterName], 0, 1, currentRow,
             currentRow+1, yoptions=gtk.FILL, xpadding=6, ypadding=6)
         currentRow = currentRow + 1
         self.radioButton[eaterName].show()
         sigID = self.radioButton[eaterName].connect(
             "toggled", self.cb_toggled, eaterName)
         self.radioButtonHandlers[eaterName] = sigID
     self.widget.show()
開發者ID:offlinehacker,項目名稱:flumotion,代碼行數:20,代碼來源:admin_gtk.py


注:本文中的flumotion.component.base.baseadminnode.BaseAdminGtkNode類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。