コード例 #1
0
	def test_gui_map_window(self):
		try:
			from .config import Config
			from .map import Map
			from .gui import MapWindow
		except SystemError:
			from config import Config
			from map import Map
			from gui import MapWindow
		test_config = Config(None).default_config["map"]
		test_map = Map(test_config)
		map_window = MapWindow(test_map)
		map_window.hide()
		map_window.on_destroy(None)
コード例 #2
0
ファイル: test.py プロジェクト: krzotr/kismon
	def test_gui_map_window(self):
		try:
			from .config import Config
			from .map import Map
			from .gui import MapWindow
		except SystemError:
			from config import Config
			from map import Map
			from gui import MapWindow
		test_config = Config(None).default_config["map"]
		test_map = Map(test_config)
		map_window = MapWindow(test_map)
		test_event = TestEvent()
		test_event.keyval = 65480 # F11
		map_window.on_key_release(None, test_event)
		map_window.on_key_release(None, test_event)
		test_event.keyval = 105 # i
		map_window.on_key_release(None, test_event)
		test_event.keyval = 111 # o
		map_window.on_key_release(None, test_event)
		map_window.hide()
		map_window.on_destroy(None)
コード例 #3
0
ファイル: test.py プロジェクト: mark-ankit/kismon
	def test_gui_map_window(self):
		try:
			from .config import Config
			from .map import Map
			from .gui import MapWindow
		except SystemError:
			from config import Config
			from map import Map
			from gui import MapWindow
		test_config = Config(None).default_config["map"]
		test_map = Map(test_config)
		map_window = MapWindow(test_map)
		test_event = TestEvent()
		test_event.keyval = 65480 # F11
		map_window.on_key_release(None, test_event)
		map_window.on_key_release(None, test_event)
		test_event.keyval = 105 # i
		map_window.on_key_release(None, test_event)
		test_event.keyval = 111 # o
		map_window.on_key_release(None, test_event)
		map_window.hide()
		map_window.on_destroy(None)