本文整理汇总了Python中flumotion.component.base.baseadminnode.BaseAdminGtkNode.setUIState方法的典型用法代码示例。如果您正苦于以下问题:Python BaseAdminGtkNode.setUIState方法的具体用法?Python BaseAdminGtkNode.setUIState怎么用?Python BaseAdminGtkNode.setUIState使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类flumotion.component.base.baseadminnode.BaseAdminGtkNode
的用法示例。
在下文中一共展示了BaseAdminGtkNode.setUIState方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUIState
# 需要导入模块: from flumotion.component.base.baseadminnode import BaseAdminGtkNode [as 别名]
# 或者: from flumotion.component.base.baseadminnode.BaseAdminGtkNode import setUIState [as 别名]
def setUIState(self, state):
BaseAdminGtkNode.setUIState(self, state)
if not self.widget:
return
self.haveMetadata(state.get('metadata', {}))
self.haveCodecInfo(state.get('codec-info', {}))
示例2: setUIState
# 需要导入模块: from flumotion.component.base.baseadminnode import BaseAdminGtkNode [as 别名]
# 或者: from flumotion.component.base.baseadminnode.BaseAdminGtkNode import setUIState [as 别名]
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)
示例3: setUIState
# 需要导入模块: from flumotion.component.base.baseadminnode import BaseAdminGtkNode [as 别名]
# 或者: from flumotion.component.base.baseadminnode.BaseAdminGtkNode import setUIState [as 别名]
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))
示例4: setUIState
# 需要导入模块: from flumotion.component.base.baseadminnode import BaseAdminGtkNode [as 别名]
# 或者: from flumotion.component.base.baseadminnode.BaseAdminGtkNode import setUIState [as 别名]
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))
示例5: setUIState
# 需要导入模块: from flumotion.component.base.baseadminnode import BaseAdminGtkNode [as 别名]
# 或者: from flumotion.component.base.baseadminnode.BaseAdminGtkNode import setUIState [as 别名]
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())
示例6: setUIState
# 需要导入模块: from flumotion.component.base.baseadminnode import BaseAdminGtkNode [as 别名]
# 或者: from flumotion.component.base.baseadminnode.BaseAdminGtkNode import setUIState [as 别名]
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))
示例7: setUIState
# 需要导入模块: from flumotion.component.base.baseadminnode import BaseAdminGtkNode [as 别名]
# 或者: from flumotion.component.base.baseadminnode.BaseAdminGtkNode import setUIState [as 别名]
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)
示例8: setUIState
# 需要导入模块: from flumotion.component.base.baseadminnode import BaseAdminGtkNode [as 别名]
# 或者: from flumotion.component.base.baseadminnode.BaseAdminGtkNode import setUIState [as 别名]
def setUIState(self, state):
BaseAdminGtkNode.setUIState(self, state)
self.stateSet(state, "filename", state.get("filename"))
self.stateSet(state, "recording", state.get("recording"))
self.stateSet(state, "can-schedule", state.get("can-schedule"))
示例9: setUIState
# 需要导入模块: from flumotion.component.base.baseadminnode import BaseAdminGtkNode [as 别名]
# 或者: from flumotion.component.base.baseadminnode.BaseAdminGtkNode import setUIState [as 别名]
def setUIState(self, state):
BaseAdminGtkNode.setUIState(self, state)
self.refreshUIState()
self._uiInitialized = True
示例10: setUIState
# 需要导入模块: from flumotion.component.base.baseadminnode import BaseAdminGtkNode [as 别名]
# 或者: from flumotion.component.base.baseadminnode.BaseAdminGtkNode import setUIState [as 别名]
def setUIState(self, state):
# will only be called when we have a widget tree
BaseAdminGtkNode.setUIState(self, state)
#self.widget.show_all()
for eater in state.get('eaters'):
self.addEater(state, eater)
示例11: setUIState
# 需要导入模块: from flumotion.component.base.baseadminnode import BaseAdminGtkNode [as 别名]
# 或者: from flumotion.component.base.baseadminnode.BaseAdminGtkNode import setUIState [as 别名]
def setUIState(self, state):
BaseAdminGtkNode.setUIState(self, state)
self.stateSet(state, 'active-eater', state.get('active-eater'))
示例12: setUIState
# 需要导入模块: from flumotion.component.base.baseadminnode import BaseAdminGtkNode [as 别名]
# 或者: from flumotion.component.base.baseadminnode.BaseAdminGtkNode import setUIState [as 别名]
def setUIState(self, state):
BaseAdminGtkNode.setUIState(self, state)
self.refreshUIState()
示例13: setUIState
# 需要导入模块: from flumotion.component.base.baseadminnode import BaseAdminGtkNode [as 别名]
# 或者: from flumotion.component.base.baseadminnode.BaseAdminGtkNode import setUIState [as 别名]
def setUIState(self, state):
BaseAdminGtkNode.setUIState(self, state)
if not self.uiStateHandlers:
self.uiStateHandlers = {'pattern': self.patternSet}
for k, handler in self.uiStateHandlers.items():
handler(state.get(k))