[issue28694] tkinter interface to fontchooser

2020-09-24 Thread E. Paine
E. Paine added the comment: I have started looking at Mark's wrapper (though I have not been able to ​spend as much time on it as I would like). It's mostly small changes ​that I have made (in no particular order): - TkFontchooserFontChanged event calls 'command' (to be behave like an 'apply' bu

[issue28694] tkinter interface to fontchooser

2020-09-19 Thread Mark Roseman
Mark Roseman added the comment: I've put together the first cut of a wrapper that tries to smooth over some of the non-essential differences in implementation details across platforms, while still respecting essential platform conventions. It also works around a few bugs I discovered along t

[issue28694] tkinter interface to fontchooser

2020-09-19 Thread Mark Roseman
Mark Roseman added the comment: For future reference, if anyone is wondering why the font chooser is so complicated to use in a way that makes sense across platforms, here is its current behaviour... >From the manual: - configure -font is the font currently shown or font shown when dialog i

[issue28694] tkinter interface to fontchooser

2020-09-15 Thread Mark Roseman
Mark Roseman added the comment: Elaine, I was just having a look at this the other day too! I agree, this is definitely worth some effort to get done. To be honest, I'm not a fan of the vwait solution to force the dialog to be modal. It doesn't actually make it modal (i.e. you can still do s

[issue28694] tkinter interface to fontchooser

2020-09-15 Thread E. Paine
E. Paine added the comment: +1 I also think that the fontchooser should be wrapped. I briefly tested your wrapper, Lance, and found it worked fine on Windows but did not on my Linux setup (because it is non-modal). I went about implementing my own wrapper based loosely around your's (see at

[issue28694] tkinter interface to fontchooser

2020-09-11 Thread Mark Roseman
Change by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[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-l

[issue28694] tkinter interface to fontchooser

2016-11-18 Thread Zachary Ware
Zachary Ware added the comment: I would recommend backing out your commit (hg rollback if you haven't pulled or otherwise changed your checkout since you made your commit), and just do 'hg diff' at the point where you would commit. In this particular case, if there are no changes other than t

[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/fi

[issue28694] tkinter interface to fontchooser

2016-11-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://www.tcl.tk/man/tcl/TkCmd/fontchooser.htm I agree that this should be wrapped, as is colorchooser. There are a few details that may need to be thrashed out. It is a nuisance that the native font dialog is modal on Windows and not on Mac (and ??? on *ni

[issue28694] tkinter interface to fontchooser

2016-11-14 Thread Zachary Ware
Zachary Ware added the comment: You've already done the proposing part by opening this issue ;). To contribute you work, attach it here as a patch to the tkinter sources found in Lib/tkinter/ of a cpython source checkout. You'll need to sign a contributor agreement before we can look at or a

[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 messag