def main(): from xpra.gtk_util import set_application_name, set_prgname set_prgname("Clipboard Test Tool") set_application_name("Clipboard Test Tool") if sys.platform.startswith("win"): from xpra.win32 import set_redirect_output, set_log_filename set_redirect_output(True) set_log_filename("Clipboard_Test.log") init() ClipboardStateInfoWindow() gtk.main()
def main(): logging.basicConfig(format="%(asctime)s %(message)s") logging.root.setLevel(logging.DEBUG) from xpra.gtk_util import set_application_name, set_prgname set_prgname("Primary Clipboard Test Tool") set_application_name("Primary Clipboard Test Tool") if sys.platform.startswith("win"): from xpra.win32 import set_redirect_output, set_log_filename set_redirect_output(True) set_log_filename("Primary_Clipboard_Test.log") init() frc = FakeRemoteClipboard() gobject.timeout_add(1000, frc.fake_token) #gobject.timeout_add(1200, fake_target, 0) #gobject.timeout_add(1400, fake_target, 1) #gobject.timeout_add(1600, fake_target, 2) #gobject.timeout_add(1800, fake_data, 2) #gobject.timeout_add(2500, fake_data, 3) #gobject.timeout_add(3500, fake_data, 5) gtk.main()