[issue32825] warn user of creation of multiple Tk instances

2018-02-12 Thread mps

New submission from mps :

tkinter is the first GUI interface used by novices. 
They often get in trouble when they create a new Tk instance instead of a 
Toplevel.
It would be helpful to output a warning message in this case (i.e. checking 
_default_root is not None and _support_default_root is True in the Tk 
initialization).
Thank for your attention and best regards.

- mps.

--
components: Tkinter
messages: 312036
nosy: mps
priority: normal
severity: normal
status: open
title: warn user of creation of multiple Tk instances
type: behavior

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



[issue23831] tkinter canvas lacks of moveto method.

2015-03-31 Thread mps

New submission from mps:

I apologize if it has already been reported but I was unable to find similar 
issue reported using "search".

Maybe just add:
def moveto(self, tagOrId, xPos, yPos):
"""Move the items given by tagOrId in the canvas coordinate  
space so that the first coordinate pair of the bottommost 
item with tag tagOrId is located at position (xPos,yPos). 
xPos and yPos may be the empty string, in which case the
corresponding coordinate will be unchanged. All items matching
tagOrId remain in the same positions relative to each other.
This command returns an empty string. 
"""
return self.tk.call(self._w, 'moveto', tagOrId, xPos, yPos)

------
components: Tkinter
messages: 239745
nosy: mps
priority: normal
severity: normal
status: open
title: tkinter canvas lacks of moveto method.
type: enhancement
versions: Python 3.4

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