[issue27939] Tkinter mainloop raises when setting the value of ttk.LabeledScale

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +1005

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27939] Tkinter mainloop raises when setting the value of ttk.LabeledScale

2016-10-30 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27939] Tkinter mainloop raises when setting the value of ttk.LabeledScale

2016-10-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 394b2b4da150 by Serhiy Storchaka in branch '3.5':
Issue #27939: Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale caused
https://hg.python.org/cpython/rev/394b2b4da150

New changeset 91884d043fdc by Serhiy Storchaka in branch '3.6':
Issue #27939: Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale caused
https://hg.python.org/cpython/rev/91884d043fdc

New changeset 9e3931aa1ff0 by Serhiy Storchaka in branch 'default':
Issue #27939: Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale caused
https://hg.python.org/cpython/rev/9e3931aa1ff0

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27939] Tkinter mainloop raises when setting the value of ttk.LabeledScale

2016-10-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This is caused by replacing int() by self._tk.getint() in IntVar.get() 
(issue23880). But the failure can be reproduced even in 3.4 if set 
tk.wantobjects = 0 before creating root widget.

One way is making getint() accepting floats. This fizes original example, but 
doesn't solve the issue for tk.wantobjects = 0.

Other way is making IntVar.get() falling back to integer part of getdouble(). 
This fixes the example in both modes. Proposed patch goes this way.

--
assignee:  -> serhiy.storchaka
keywords: +patch
stage: needs patch -> patch review
versions: +Python 3.7
Added file: http://bugs.python.org/file45203/tkinter_intvar_float_value.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27939] Tkinter mainloop raises when setting the value of ttk.LabeledScale

2016-09-02 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
nosy: +serhiy.storchaka
stage:  -> needs patch
type: crash -> behavior
versions: +Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27939] Tkinter mainloop raises when setting the value of ttk.LabeledScale

2016-09-02 Thread Goyo

New submission from Goyo:

Calling mainloop after setting the value of a ttk.LabeledScale raises an error. 
The same happens if the value is set after entering the mainloop.

Does not affect python 3.4.3. Does not affect ttk.Scale. No error is raised if 
you do not call mainloop.


import tkinter as tk
import tkinter.ttk as ttk
root = tk.Tk()
w = ttk.LabeledScale(root)
w.pack()
w.scale.set(1)
root.mainloop()

Traceback (most recent call last):
  File 
"d:\users\u938001\AppData\Local\Programs\Python\Python35-32\lib\tkinter\__init__.py",
 line 1550, in __call__
return self.func(*args)
  File 
"d:\users\u938001\AppData\Local\Programs\Python\Python35-32\lib\tkinter\ttk.py",
 line 1540, in _adjust
newval = self._variable.get()
  File 
"d:\users\u938001\AppData\Local\Programs\Python\Python35-32\lib\tkinter\__init__.py",
 line 355, in get
return self._tk.getint(self._tk.globalgetvar(self._name))
TypeError: getint() argument must be str, not float

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "itcomp.py", line 8, in 
root.mainloop()
  File 
"d:\users\u938001\AppData\Local\Programs\Python\Python35-32\lib\tkinter\__init__.py",
 line 1131, in mainloop
self.tk.mainloop(n)
  File 
"d:\users\u938001\AppData\Local\Programs\Python\Python35-32\lib\tkinter\__init__.py",
 line 1554, in __call__
self.widget._report_exception()
AttributeError: 'IntVar' object has no attribute '_report_exception'

--
components: Tkinter
messages: 274223
nosy: goyodiaz
priority: normal
severity: normal
status: open
title: Tkinter mainloop raises when setting the value of ttk.LabeledScale
type: crash
versions: Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com