当前位置: 首页>>代码示例>>Python>>正文


Python OSDWindow.show方法代码示例

本文整理汇总了Python中scc.osd.OSDWindow.show方法的典型用法代码示例。如果您正苦于以下问题:Python OSDWindow.show方法的具体用法?Python OSDWindow.show怎么用?Python OSDWindow.show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在scc.osd.OSDWindow的用法示例。


在下文中一共展示了OSDWindow.show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: show

# 需要导入模块: from scc.osd import OSDWindow [as 别名]
# 或者: from scc.osd.OSDWindow import show [as 别名]
	def show(self, *a):
		OSDWindow.show(self, *a)
		self.profile.load(find_profile(".scc-osd.keyboard")).compress()
		self.mapper = SlaveMapper(self.profile, keyboard=b"SCC OSD Keyboard")
		self.mapper.set_special_actions_handler(self)
		self.set_cursor_position(0, 0, self.cursors[LEFT], self.limits[LEFT])
		self.set_cursor_position(0, 0, self.cursors[RIGHT], self.limits[RIGHT])
开发者ID:wendeldr,项目名称:sc-controller,代码行数:9,代码来源:keyboard.py

示例2: show

# 需要导入模块: from scc.osd import OSDWindow [as 别名]
# 或者: from scc.osd.OSDWindow import show [as 别名]
	def show(self):
		OSDWindow.show(self)

		from ctypes import byref

		pb = self.b.get_pixbuf()
		win = X.XID(self.get_window().get_xid())
		
		pixmap = X.create_pixmap(self.xdisplay, win,
			pb.get_width(), pb.get_height(), 1)
		width = pb.get_width()
		height = pb.get_height()
		self.f.move(self.cursor, int(width / 2), int(height / 2))
		
		gc = X.create_gc(self.xdisplay, pixmap, 0, None)
		X.set_foreground(self.xdisplay, gc, 0)
		X.fill_rectangle(self.xdisplay, pixmap, gc, 0, 0, pb.get_width(), pb.get_height())
		X.set_foreground(self.xdisplay, gc, 1)
		X.set_background(self.xdisplay, gc, 1)
		
		r = int(pb.get_width() * 0.985)
		x = (pb.get_width() - r) / 2
		
		X.fill_arc(self.xdisplay, pixmap, gc,
			x, x, r, r, 0, 360*64)
		
		X.flush_gc(self.xdisplay, gc)
		X.flush(self.xdisplay)
		
		X.shape_combine_mask(self.xdisplay, win, X.SHAPE_BOUNDING, 0, 0, pixmap, X.SHAPE_SET)
		
		X.flush(self.xdisplay)
开发者ID:Micr0Bit,项目名称:sc-controller,代码行数:34,代码来源:radial_menu.py

示例3: show

# 需要导入模块: from scc.osd import OSDWindow [as 别名]
# 或者: from scc.osd.OSDWindow import show [as 别名]
	def show(self, *a):
		if self.background is None:
			self.realize()
			self.background = SVGWidget(self.args.image, init_hilighted=True)
			self.c.add(self.background)
			self.add(self.c)
		
		OSDWindow.show(self, *a)
		self.move(*self.compute_position())
开发者ID:kozec,项目名称:sc-controller,代码行数:11,代码来源:binding_display.py

示例4: show

# 需要导入模块: from scc.osd import OSDWindow [as 别名]
# 或者: from scc.osd.OSDWindow import show [as 别名]
	def show(self):
		self.l = Gtk.Label()
		self.l.set_name("osd-label")
		self.l.set_label(self.text)
		
		self.add(self.l)
		
		OSDWindow.show(self)
		GLib.timeout_add_seconds(self.timeout, self.quit)
开发者ID:Micr0Bit,项目名称:sc-controller,代码行数:11,代码来源:message.py

示例5: show

# 需要导入模块: from scc.osd import OSDWindow [as 别名]
# 或者: from scc.osd.OSDWindow import show [as 别名]
	def show(self):
		self.l = Gtk.Label()
		self.l.set_name("osd-label-%s" % (self.size, ))
		self.l.set_label(self.text)
		
		self.add(self.l)
		
		if self.size < 2:
			self.set_name("osd-message-1")
		OSDWindow.show(self)
		if self.timeout > 0:
			self._timeout_id = GLib.timeout_add_seconds(self.timeout, self.quit)
开发者ID:kozec,项目名称:sc-controller,代码行数:14,代码来源:message.py

示例6: show

# 需要导入模块: from scc.osd import OSDWindow [as 别名]
# 或者: from scc.osd.OSDWindow import show [as 别名]
	def show(self, *a):
		if self.background is None:
			self._create_background()
		OSDWindow.show(self, *a)
		self.load_profile()
		self.mapper = SlaveMapper(self.profile, None,
			keyboard=b"SCC OSD Keyboard", mouse=b"SCC OSD Mouse")
		self.mapper.set_special_actions_handler(self)
		self.set_cursor_position(0, 0, self.cursors[LEFT], self.limits[LEFT])
		self.set_cursor_position(0, 0, self.cursors[RIGHT], self.limits[RIGHT])
		self.set_cursor_position(0, 0, self.cursors[CPAD], self.limits[CPAD])
		self.timer('labels', 0.1, self.update_labels)
开发者ID:kozec,项目名称:sc-controller,代码行数:14,代码来源:keyboard.py

示例7: show

# 需要导入模块: from scc.osd import OSDWindow [as 别名]
# 或者: from scc.osd.OSDWindow import show [as 别名]
	def show(self):
		self.main_area = Gtk.Fixed()
		self.background = SVGWidget(os.path.join(self.imagepath, self.IMAGE))
		self.lpadTest = Gtk.Image.new_from_file(os.path.join(self.imagepath, "inputdisplay-cursor.svg"))
		self.rpadTest = Gtk.Image.new_from_file(os.path.join(self.imagepath, "inputdisplay-cursor.svg"))
		self.stickTest = Gtk.Image.new_from_file(os.path.join(self.imagepath, "inputdisplay-cursor.svg"))
		
		self.main_area.set_property("margin-left", 10)
		self.main_area.set_property("margin-right", 10)
		self.main_area.set_property("margin-top", 10)
		self.main_area.set_property("margin-bottom", 10)
		
		self.main_area.put(self.background, 0, 0)
		self.main_area.put(self.lpadTest, 40, 40)
		self.main_area.put(self.rpadTest, 290, 90)
		self.main_area.put(self.stickTest, 150, 40)
		
		self.add(self.main_area)
		
		OSDWindow.show(self)
		self.lpadTest.hide()
		self.rpadTest.hide()
		self.stickTest.hide()
开发者ID:kozec,项目名称:sc-controller,代码行数:25,代码来源:inputdisplay.py

示例8: show

# 需要导入模块: from scc.osd import OSDWindow [as 别名]
# 或者: from scc.osd.OSDWindow import show [as 别名]
	def show(self, *a):
		if not self.select(0):
			self.next_item(1)
		OSDWindow.show(self, *a)
开发者ID:kozec,项目名称:sc-controller,代码行数:6,代码来源:dialog.py

示例9: show

# 需要导入模块: from scc.osd import OSDWindow [as 别名]
# 或者: from scc.osd.OSDWindow import show [as 别名]
	def show(self, *a):
		if not self.select(0):
			self.next_item(1)
		OSDWindow.show(self, *a)
		GLib.timeout_add(1, self._check_on_screen_position, True)
开发者ID:kozec,项目名称:sc-controller,代码行数:7,代码来源:menu.py

示例10: show

# 需要导入模块: from scc.osd import OSDWindow [as 别名]
# 或者: from scc.osd.OSDWindow import show [as 别名]
	def show(self, *a):
		self.select(0)
		OSDWindow.show(self, *a)
开发者ID:alwaysLearnin,项目名称:sc-controller,代码行数:5,代码来源:menu.py

示例11: show

# 需要导入模块: from scc.osd import OSDWindow [as 别名]
# 或者: from scc.osd.OSDWindow import show [as 别名]
	def show(self, *a):
		OSDWindow.show(self, *a)
		self.keyboard = uinputKeyboard(b"SCC OSD Keyboard")
开发者ID:TotalCaesar659,项目名称:sc-controller,代码行数:5,代码来源:keyboard.py

示例12: show

# 需要导入模块: from scc.osd import OSDWindow [as 别名]
# 或者: from scc.osd.OSDWindow import show [as 别名]
	def show(self):
		OSDWindow.show(self)
		self.realize()
		self.resize(*self.size)
		self.make_hole(self.BORDER_WIDTH)
开发者ID:alwaysLearnin,项目名称:sc-controller,代码行数:7,代码来源:area.py

示例13: show

# 需要导入模块: from scc.osd import OSDWindow [as 别名]
# 或者: from scc.osd.OSDWindow import show [as 别名]
	def show(self, *a):
		if not self.select(0):
			self._direction = 1
			self.next_item()
			self._direction = 0
		OSDWindow.show(self, *a)
开发者ID:Micr0Bit,项目名称:sc-controller,代码行数:8,代码来源:menu.py

示例14: show

# 需要导入模块: from scc.osd import OSDWindow [as 别名]
# 或者: from scc.osd.OSDWindow import show [as 别名]
	def show(self, *a):
		if not self.select(0):
			self.next_item(1)
		OSDWindow.show(self, *a)
		for c in self.cursors:
			c.set_visible(False)
开发者ID:kozec,项目名称:sc-controller,代码行数:8,代码来源:launcher.py

示例15: show

# 需要导入模块: from scc.osd import OSDWindow [as 别名]
# 或者: from scc.osd.OSDWindow import show [as 别名]
	def show(self, *a):
		OSDWindow.show(self, *a)
开发者ID:kozec,项目名称:sc-controller,代码行数:4,代码来源:gesture_display.py


注:本文中的scc.osd.OSDWindow.show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。