def get_test_window():
win = Gtk.Window()
win.set_size_request(300, 200)
HW_TEST_RESULT = {
'hardware::gps': 'yes',
'hardware::video:opengl': 'no',
}
# add it
hwbox = HardwareRequirementsBox()
hwbox.set_hardware_requirements(HW_TEST_RESULT)
win.add(hwbox)
win.show_all()
win.connect("destroy", Gtk.main_quit)
return win
评论列表
文章目录