def testDeselect(self): type('Icon View') click('Icon View') type('+') self.runDemo('Icon View Basics') focus.window('GtkIconView demo') focus.widget(roleName='icon') select() deselect() self.assertFalse(focus.widget.isSelected)
def test_deselect(self): type('Icon View') click('Icon View') type('+') sleep(0.5) self.runDemo('Icon View Basics') focus.window('GtkIconView demo') focus.widget(roleName='icon') select() deselect() self.assertFalse(focus.widget.isSelected)
def test_deselect(self): type('Icon View') click('Icon View') type('+') sleep(0.5) self.runDemo('Icon View Basics') try: wnd = self.app.child('GtkIconView demo', roleName='frame', recursive=False, retry=False) except SearchError: wnd = self.app.child('Icon View Basics', roleName='frame', recursive=False, retry=False) focus.window(wnd.name) focus.widget(roleName='icon') select() deselect() self.assertFalse(focus.widget.isSelected)