本文整理汇总了Python中scc.gui.ae.AEComponent.load方法的典型用法代码示例。如果您正苦于以下问题:Python AEComponent.load方法的具体用法?Python AEComponent.load怎么用?Python AEComponent.load使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类scc.gui.ae.AEComponent
的用法示例。
在下文中一共展示了AEComponent.load方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: load
# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
def load(self):
if self.loaded : return
AEComponent.load(self)
self._recursing = True
cbGyroButton = self.builder.get_object("cbGyroButton")
fill_buttons(cbGyroButton)
self._recursing = False
示例2: load
# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
def load(self):
if self.loaded : return
AEComponent.load(self)
try:
txCustomAction = self.builder.get_object("txCustomAction")
txCustomAction.set_monospace(True)
except: pass
示例3: load
# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
def load(self):
if self.loaded : return
AEComponent.load(self)
cbConfirmWith = self.builder.get_object("cbConfirmWith")
cbCancelWith = self.builder.get_object("cbCancelWith")
cbConfirmWith.set_row_separator_func( lambda model, iter : model.get_value(iter, 0) == "-" )
cbCancelWith.set_row_separator_func( lambda model, iter : model.get_value(iter, 0) == "-" )
示例4: load
# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
def load(self):
if not self.loaded:
AEComponent.load(self)
self.setup_image()
if self.app.osd_mode:
self.builder.get_object('btnGrabKey').set_sensitive(False)
self.builder.get_object('btnGrabAnother').set_sensitive(False)
示例5: load
# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
def load(self):
if self.loaded : return
AEComponent.load(self)
cbAreaType = self.builder.get_object("cbAreaType")
cbAreaType.set_row_separator_func( lambda model, iter : model.get_value(iter, 0) == "-" )
self.on_wayland = "WAYLAND_DISPLAY" in os.environ or not isinstance(Gdk.Display.get_default(), GdkX11.X11Display)
if self.on_wayland:
self.builder.get_object("lblArea").set_text(_("Note: Mouse Region option is not available with Wayland-based display server"))
self.builder.get_object("grArea").set_sensitive(False)
# Remove options that are not applicable to currently editted input
if self.editor.get_id() in STICKS:
# Remove "Mouse Region", "Mouse" and "Mouse (Emulate Stick)" options
# when editing stick bindings
cb = self.builder.get_object("cbAxisOutput")
for row in cb.get_model():
if row[2] in ("wheel_pad", "area", "mouse", "mouse_pad"):
cb.get_model().remove(row.iter)
else:
# Remove "Mouse" option when editing pads
# (it's effectivelly same as Trackpad)
cb = self.builder.get_object("cbAxisOutput")
for row in cb.get_model():
if row[2] in ("wheel_stick", "mouse_stick"):
cb.get_model().remove(row.iter)
示例6: load
# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
def load(self):
if self.loaded : return
AEComponent.load(self)
cbGyroButton = self.builder.get_object("cbGyroButton")
self._recursing = True
cbGyroButton = self.builder.get_object("cbGyroButton")
fill_buttons(cbGyroButton)
self._recursing = False
self.buttons = [ self.builder.get_object(x) for x in ("btPitch", "btYaw", "btRoll") ]
self.cbs = [ self.builder.get_object(x) for x in ("cbPitchAbs", "cbYawAbs", "cbRollAbs") ]
self.labels = [ self.builder.get_object(x) for x in ("lblPitch", "lblYaw", "lblRoll") ]
示例7: load
# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
def load(self):
if AEComponent.load(self):
markup = ""
if self.editor.get_mode() == Action.AC_PAD:
markup = MARKUP_PAD
elif self.editor.get_mode() == Action.AC_STICK:
markup = MARKUP_STICK
elif self.editor.get_mode() == Action.AC_GYRO:
markup = MARKUP_GYRO
elif self.editor.get_mode() == Action.AC_TRIGGER:
markup = MARKUP_TRIGGER
else:
markup = MARKUP_BUTTON
long_names = {
'LPAD' : _("Left Pad"),
'RPAD' : _("Right Pad"),
'LGRIP' : _("Left Grip"),
'RGRIP' : _("Right Grip"),
'LB' : _("Left Bumper"),
'RB' : _("Right Bumper"),
'LEFT' : _("Left Trigger"),
'RIGHT' : _("Right Trigger"),
'STICK' : _("Stick"),
}
markup = markup % {
'what' : long_names.get(nameof(self.editor.get_id()),
nameof(self.editor.get_id()).title())
}
self.builder.get_object("lblMarkup").set_markup(markup.strip(" \r\n\t"))
return True
示例8: load
# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
def load(self):
if not self.loaded:
AEComponent.load(self)
self.setup_image(grid_columns=2)
示例9: load
# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
def load(self):
if self.loaded : return
AEComponent.load(self)
示例10: load
# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
def load(self):
if self.loaded : return
AEComponent.load(self)
cbAreaType = self.builder.get_object("cbAreaType")
cbAreaType.set_row_separator_func( lambda model, iter : model.get_value(iter, 0) == "-" )
示例11: load
# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
def load(self):
if not self.loaded:
AEComponent.load(self)
self.setup_image()
示例12: load
# 需要导入模块: from scc.gui.ae import AEComponent [as 别名]
# 或者: from scc.gui.ae.AEComponent import load [as 别名]
def load(self):
if not self.loaded:
AEComponent.load(self)
self.builder.get_object("lblClickAnyButton").set_visible(False)