本文整理汇总了Python中gui.MainWindow.fullscreen方法的典型用法代码示例。如果您正苦于以下问题:Python MainWindow.fullscreen方法的具体用法?Python MainWindow.fullscreen怎么用?Python MainWindow.fullscreen使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gui.MainWindow
的用法示例。
在下文中一共展示了MainWindow.fullscreen方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_gui_main_window
# 需要导入模块: from gui import MainWindow [as 别名]
# 或者: from gui.MainWindow import fullscreen [as 别名]
def test_gui_main_window(self):
from gi.repository import Gtk
try:
from .config import Config
from .map import Map
from .gui import MainWindow
except SystemError:
from config import Config
from map import Map
from gui import MainWindow
def dummy():
return
test_config = Config(None).default_config
test_map = Map(test_config["map"])
test_networks = networks()
main_window = MainWindow(test_config, dummy, dummy, test_map, test_networks, None, None)
main_window.network_list.crypt_cache = {}
main_window.log_list.add("test")
main_window.network_list.network_selected = "11:22:33:44:55:66"
main_window.network_list.add_network('00:12:2A:03:B9:12')
main_window.network_list.add_network('00:12:2A:03:B9:12')
main_window.network_list.remove_network('00:12:2A:03:B9:12')
main_window.update_info_table({"networks":100, "packets":200})
main_window.update_gps_table({"fix": 3, "lat": 52.0, "lon": 13.0})
sources = {"1": {"uuid": "1", "username": "test", "type": "bla",
"channel": 11, "packets": 100}}
main_window.update_sources_table(sources)
main_window.on_configure_event(None, None)
main_window.on_config_window(None)
main_window.on_config_window(None)
main_window.on_signal_graph(None)
main_window.on_signal_graph_destroy(None, "11:22:33:44:55:66")
main_window.fullscreen()
main_window.fullscreen()
main_window.on_map_window(None, True)
main_window.on_map_window(None, False)
main_window.on_map_widget(None, True)
main_window.on_map_widget(None, False)
main_window.on_client_disconnect(None)
test_event = TestEvent()
main_window.on_window_state(None, test_event)
test_widget = TestWidget()
config_window = main_window.config_window
main_window.on_file_import(None)
test_widget.text = "Infrastructure"
main_window.on_network_filter_type(test_widget)
main_window.on_network_filter_networks(test_widget, "map", "all")
示例2: test_gui_main_window
# 需要导入模块: from gui import MainWindow [as 别名]
# 或者: from gui.MainWindow import fullscreen [as 别名]
def test_gui_main_window(self):
from gi.repository import Gtk
try:
from .config import Config
from .map import Map
from .gui import MainWindow
from .client import ClientThread
from .tracks import Tracks
except SystemError:
from config import Config
from map import Map
from gui import MainWindow
from client import ClientThread
from tracks import Tracks
def dummy(server_id):
return
test_widget = TestWidget()
test_config = Config(None).default_config
test_map = Map(test_config["map"])
test_networks = networks()
test_client_threads = {0: ClientThread()}
tmp_tracks_file = "%s%stest-tracks-%s.json" % (tempfile.gettempdir(), os.sep, int(time.time()))
test_tracks = Tracks(tmp_tracks_file)
main_window = MainWindow(test_config, dummy, dummy, test_map, test_networks, test_tracks, {0: None, 1: None}, test_client_threads)
main_window.network_list.crypt_cache = {}
main_window.log_list.add("Kismon", "test")
main_window.network_list.add_network('11:22:33:44:55:66')
main_window.network_list.network_selected = '11:22:33:44:55:66'
main_window.network_list.add_network('00:12:2A:03:B9:12')
main_window.network_list.add_network('00:12:2A:03:B9:12')
main_window.network_list.column_selected = 2
main_window.network_list.on_copy_field(None)
main_window.network_list.on_copy_network(None)
main_window.network_list.on_comment_editing_done(test_widget)
main_window.network_list.remove_network('00:12:2A:03:B9:12')
main_window.server_tabs[0].update_info_table({"networks":100, "packets":200} )
main_window.server_tabs[0].update_gps_table({"fix": 3, "lat": 52.0, "lon": 13.0})
sources = {"1": {"uuid": "1", "username": "test", "type": "bla",
"channel": 11, "packets": 100}}
main_window.server_tabs[0].update_sources_table(sources)
main_window.on_configure_event(None, None)
main_window.on_config_window(None)
main_window.on_config_window(None)
main_window.on_signal_graph(None)
main_window.on_signal_graph_destroy(None, "11:22:33:44:55:66")
main_window.fullscreen()
main_window.fullscreen()
main_window.on_map_window(None, True)
main_window.on_map_window(None, False)
main_window.on_map_widget(None, True)
main_window.on_map_widget(None, False)
#main_window.on_server_disconnect(None, 0)
test_event = TestEvent()
main_window.on_window_state(None, test_event)
config_window = main_window.config_window
main_window.on_file_import(None)
test_widget.text = "Infrastructure"
main_window.on_network_filter_type(test_widget)
main_window.on_network_filter_networks(test_widget, "map", "all")