def generate_main_window(plug, socket_id, screen_id, screen_name, onescreen): base_class = get_window_class(plug) window_class = get_main_window(base_class) window = window_class(screen_id, screen_name, socket_id, onescreen) window.show_all()
def create_wifi_gui(is_plug, socket_id, no_confirm_ether=False): base_class = get_window_class(is_plug) wifi_gui = get_wifi_gui(base_class) iface = get_wlan_device() # this is now redundant, moved to _launch_application win = wifi_gui(socket_id=socket_id, wiface=iface, no_confirm_ether=no_confirm_ether) win.show_all() Gtk.main()