[issue28694] tkinter interface to fontchooser

2016-11-24 Thread Lance Ware

Lance Ware added the comment:

Good points, Zachary.

Regarding the commondialog.Dialog class, I think it would need to be enhanced 
to make sense using it with Fontchooser. It really doesn't do a whole lot, and 
the awful kludge in the show method (creating a Frame widget just so that some 
low-level operations can be performed) is repugnant to me. I think the whole 
thing is pretty out-of-date.

With the Font class, perhaps some of its functionality can be used. I will need 
to better understand the architecture of Font and see what I can do with it.

I think another issue that needs to be addressed is the modal/non-modal aspect 
of Tk fontchooser. I have access only to Windows OS, where it is modal. I have 
read that it is non-modal on Mac and perhaps other platforms. If that is the 
case, then the show method may not work properly on those other platforms. On 
Windows, the Tk command "tk fontchooser show" does not return control to the 
caller until after the user has clicked the OK or Cancel buttons. If it does 
return immediately on other platforms, then the show method may need do an 
update loop (or something better?) to keep the behavior consistent on the 
Python side.

--

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



[issue28694] tkinter interface to fontchooser

2016-11-14 Thread Lance Ware

New submission from Lance Ware:

Tcl/Tk 8.6 now has a fontchooser command. I have developed a tkinter interface 
to it, similar to colorchooser/askcolor. How does one go about contributing 
this or proposing for future enhancement to the tkinter module suite?

--
components: Tkinter
messages: 280820
nosy: Lance Ware
priority: normal
severity: normal
status: open
title: tkinter interface to fontchooser
type: enhancement
versions: Python 3.5

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



[issue28694] tkinter interface to fontchooser

2016-11-18 Thread Lance Ware

Lance Ware added the comment:

Not having any luck creating a patch. I have retrieved source, built python, 
put my fontchooser.py file (attached) in cpython\Lib\tkinter, done hg add and 
hg commit, but when I try to do hg diff it gives me nothing.

--
Added file: http://bugs.python.org/file45536/fontchooser.py

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