Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 975708a commit 8d8599cCopy full SHA for 8d8599c
1 file changed
Lib/tkinter/test/widget_tests.py
@@ -8,10 +8,22 @@
8
9
noconv = str if tcl_version < (8, 5) else False
10
11
+pixels_round = round
12
+if tcl_version[:2] == (8, 5):
13
+ # Issue #19085: Workaround a bug in Tk
14
+ # http://core.tcl.tk/tk/info/3497848
15
+ root = setup_master()
16
+ patchlevel = root.call('info', 'patchlevel')
17
+ patchlevel = tuple(map(int, patchlevel.split('.')))
18
+ if patchlevel < (8, 5, 12):
19
+ pixels_round = int
20
+ del root
21
+
22
23
_sentinel = object()
24
25
class AbstractWidgetTest:
- _conv_pixels = round
26
+ _conv_pixels = pixels_round
27
_conv_pad_pixels = None
28
wantobjects = True
29
0 commit comments