MCPcopy Index your code
hub / github.com/python/cpython / _click_increment_arrow

Method _click_increment_arrow

Lib/test/test_ttk/test_widgets.py:1249–1257  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1247 return ttk.Spinbox(self.root, **kwargs)
1248
1249 def _click_increment_arrow(self):
1250 width = self.spin.winfo_width()
1251 height = self.spin.winfo_height()
1252 x = width - 5
1253 y = height//2 - 5
1254 self.assertRegex(self.spin.identify(x, y), r'.*uparrow\z')
1255 self.spin.event_generate('<ButtonPress-1>', x=x, y=y)
1256 self.spin.event_generate('<ButtonRelease-1>', x=x, y=y)
1257 self.spin.update_idletasks()
1258
1259 def _click_decrement_arrow(self):
1260 width = self.spin.winfo_width()

Callers 6

test_configure_toMethod · 0.95
test_configure_formatMethod · 0.95
test_configure_wrapMethod · 0.95
test_configure_valuesMethod · 0.95

Calls 6

winfo_widthMethod · 0.80
winfo_heightMethod · 0.80
assertRegexMethod · 0.80
event_generateMethod · 0.80
update_idletasksMethod · 0.80
identifyMethod · 0.45

Tested by

no test coverage detected