[issue42305] Added Auto_Complete DropBox Suggestion For Tkinter

2020-11-09 Thread Mechtron 750
New submission from Mechtron 750 : # This is auto complete drop box suggestion wiget for tkinter # Tkinter Autocomplete Text autocompletion provides relevant real-time results to users. Because tkinter does not provide a widget for adding autocompletion to GUIs out of the box, I decided

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please open a new issue for "surrogates not allowed". -- ___ Python tracker ___ ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: W.r.t. the SyntaxError I got (msg380552): It looks like it will be possible to work around that problem in _tkinter.c:unicodeFromTclStringAndSize by merging surrogate pairs. -- ___ Python tracker

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: Note that the main installers for Python 3.8 and 3.9 will continue to use Tk 8.6.8 due to problems when building later Tk version on macOS 10.9. The current plan is to add an installer variant to (amongst others) uses Tk 8.6.10 (and .11 when that's

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy, does Ronald's report above re 8.6.10 on macOS suggest what might be needed to make print("") work on Mac? As I remember, your year-old _tkinter patch to make print() work on Linux and Windows converts Python strings differently on the two systems.

[issue42142] test_ttk timeout: FAIL tkinter ttk LabeledScale test_resize, and more

2020-11-08 Thread E. Paine
"/home/runner/work/cpython/cpython/Lib/tkinter/__init__.py", line 696 in wait_visibility File "/home/runner/work/cpython/cpython/Lib/tkinter/test/test_ttk/test_extensions.py", line 147 in test_variable_change Again, this was on the Github Ubuntu test (https://github.com

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: The crash I had on macOS with tk 8.6.8 appears to be gone when using tk 8.6.10. What I got back was a SyntaxError when pasting a smiley emoji in an IDLE shell window when trying to type execute print(""). The SyntaxError message says: 'utf-8' codec can't

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ian Strawbridge
Ian Strawbridge added the comment: On Ubuntu, Tk version is showing as 8.6.10 On Windows 10, Tk version is showing as 8.6.9 -- ___ Python tracker ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've filed a Tk issue about this: https://core.tcl-lang.org/tk/tktview/f9fa92d8e06972b5f0583b07a3c98eaac0a0 What versions of Tk are used? - On macOS I've tested with the Python.org installer, which uses Tk 8.6.8. --

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ian Strawbridge
): with open(sav_file_name, "a", encoding="utf8",newline='') as myfile: myfile.write(outputstring) def FileSave1(sav_file_name,eoutputstring): with open(sav_file_name, "a", encoding="utf8",newline='') as myfile: myfile.write(eoutputst

[issue7057] tkinter doc: more 3.x updates

2020-11-06 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.1, Python 3.2 ___ Python tracker ___ ___

[issue42142] test_ttk timeout: FAIL tkinter ttk LabeledScale test_resize, and more

2020-11-06 Thread STINNER Victor
Change by STINNER Victor : -- title: FAIL tkinter ttk LabeledScale test_resize, and more -> test_ttk timeout: FAIL tkinter ttk LabeledScale test_resize, and more ___ Python tracker <https://bugs.python.org/issu

Re: Please help test astral char display in tkinter Text (especially *nix)

2020-11-06 Thread Anssi Saari
Terry Reedy writes: > Perhaps half of the assigned chars in the first plane are printed > instead of being replaced with a narrow box. This includes emoticons > as foreground color outlines on background color. Maybe all of the > second plane of extended CJK chars are printed. The third plane

[issue42142] FAIL tkinter ttk LabeledScale test_resize, and more

2020-11-05 Thread E. Paine
E. Paine added the comment: I have been looking for a more permanent solution to that proposed in PR-23156. The most obvious solution is probably what I suggested in msg380371 as I don't believe the calls to `wait_visibility` are required (though, I don't really know enough to say for

Re: Please help test astral char display in tkinter Text (especially *nix)

2020-11-05 Thread Terry Reedy
On 11/4/2020 7:47 AM, Menno Holscher wrote: Op 03-11-2020 om 04:04 schreef Terry Reedy: Perhaps half of the assigned chars in the first plane are printed instead of being replaced with a narrow box. This includes emoticons as foreground color outlines on background color.  Maybe all of the

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Kevin, Serhiy tried to report this upstream but failed. msg380143. Perhaps you could. One person running my test program reported """ Fedora 32 x86-64 Cinnamon 4.6.7 Linux 5.8.16-200.fc32.x86_64 Python 3.8.6 (default, Sep 25 2020, 00:00:00) [GCC 10.2.1

[issue42142] FAIL tkinter ttk LabeledScale test_resize, and more

2020-11-04 Thread E. Paine
Change by E. Paine : -- keywords: +patch pull_requests: +22067 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23156 ___ Python tracker ___

[issue42142] FAIL tkinter ttk LabeledScale test_resize, and more

2020-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: All 3 of these timeout failures are Ubuntu. They are a $*#(*&(#& nuisance for a required test. Please submit a PR to skip on Ubuntu, if we can detect that, or linux, if not. I have the impression that LabeledScale and Combobox are both composite widgets,

[issue42142] FAIL tkinter ttk LabeledScale test_resize, and more

2020-11-04 Thread E. Paine
(0:20:00)! Thread 0x7f549f9d6080 (most recent call first): File "/home/runner/work/cpython/cpython/Lib/tkinter/__init__.py", line 696 in wait_visibility File "/home/runner/work/cpython/cpython/Lib/tkinter/test/test_ttk/test_widgets.py", line 452 in test_virtual_even

[issue26216] run runtktests.py error when test tkinter

2020-11-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Please help test astral char display in tkinter Text (especially *nix)

2020-11-04 Thread Menno Holscher
Op 03-11-2020 om 04:04 schreef Terry Reedy: Perhaps half of the assigned chars in the first plane are printed instead of being replaced with a narrow box. This includes emoticons as foreground color outlines on background color.  Maybe all of the second plane of extended CJK chars are printed. 

Re: Strange terminal behavior after quitting Tkinter application

2020-11-03 Thread Christian Gollwitzer
Am 03.11.20 um 23:34 schrieb Dennis Lee Bieber: Out of curiosity, does Python on Linux honor the .pyw extension? On Windows, .pyw indicates a Python program that implements a GUI and will NOT make use of console (stdin/stdout/stderr). On Linux, there is no such distinction.

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-03 Thread Kevin Walzer
Kevin Walzer added the comment: Some work has been done this year on expanding support for these types of glyphs in Tk, but I'm not sure of its current state--it's not my area of expertise. Can you open a ticket at https://core.tcl-lang.org/tk/ so one of the folks working on this can take a

Re: Strange terminal behavior after quitting Tkinter application

2020-11-03 Thread MRAB
On 2020-11-03 20:11, David Burnette wrote: On Wednesday, April 18, 2007 at 12:33:24 AM UTC-7, Chris wrote: Hi, I'm puzzled by some strange behavior when my Python/Tkinter application quits (on linux): the terminal from which I started Python is messed up. If start up python, then import

Re: Strange terminal behavior after quitting Tkinter application

2020-11-03 Thread David Burnette
On Wednesday, April 18, 2007 at 12:33:24 AM UTC-7, Chris wrote: > Hi, > I'm puzzled by some strange behavior when my Python/Tkinter > application quits (on linux): the terminal from which I started Python > is messed up. > If start up python, then import the code below, then st

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: @Kevin Walzer: Is the problem were seeing a known issue with Tk? -- nosy: +wordtech ___ Python tracker ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-03 Thread STINNER Victor
STINNER Victor added the comment: > This version catches exceptions and reports them separately and runs directly > with tkinter, in about a second. The X Error is displayed and then the process exit. Python cannot catch this fatal X

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-03 Thread STINNER Victor
of failed request: 4248 Current serial number in output stream: 4956 --- Python program: --- from tkinter import Tk from tkinter.scrolledtext import ScrolledText root = Tk() text = ScrolledText(root, width=80, height=40) text.pack() for i in range(0x1, 0x4, 32): chars = ''.join(chr(i+j

Please help test astral char display in tkinter Text (especially *nix)

2020-11-03 Thread Terry Reedy
tcl/tk supports unicode chars in the BMP (Basic Multilingual Plane, utf-8 encoded with 1-3 bytes). The presence of chars in other plains ('astral', utf-8 encoded with 4 bytes, I believe) in a tkinter Text widget messages up *editing*, but they can sometimes be displayed with appropriate

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It works on Ubuntu if uninstall the color Emoji font (package fonts-noto-color-emoji). -- ___ Python tracker ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Victor, does my test run to completion (without exception) on your Fedora? If it does, I definitely would not disable astral char display on Fedora. This version catches exceptions and reports them separately and runs directly with tkinter, in about

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-02 Thread E. Paine
E. Paine added the comment: For me, this is not limited to special characters. Trying to load anything in Tk using the 'JoyPixels' font crashes (sometimes it does load but all characters are very random - most are whitespace - and it crashes again after a call to `fc-cache`). IDLE crashes

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-02 Thread STINNER Victor
STINNER Victor added the comment: > Fixing OS graphics or tk is out of scope for us. Preventing hangs or crashes > when using tkinter is. On Mac, refusing to insert any astral char into a tk > widget might be the best solution. Serhiy, could that be done in > tkinter/_tkinter

[issue40452] Tkinter/IDLE: preserve clipboard on closure

2020-11-02 Thread Tal Einat
Tal Einat added the comment: Perhaps we could get a Tcl/Tk dev to help with this? -- ___ Python tracker ___ ___ Python-bugs-list

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Terry J. Reedy
is out of scope for us. Preventing hangs or crashes when using tkinter is. On Mac, refusing to insert any astral char into a tk widget might be the best solution. Serhiy, could that be done in tkinter/_tkinter? On Linux, the situation appears to be more complex. The SO questioner https

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The error on Linux could be related to this issue: https://bugzilla.redhat.com/show_bug.cgi?id=1498269 -- ___ Python tracker ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks different on my computer. I suppose it will crash to you too if you install a color emoji font. -- Added file: https://bugs.python.org/file49557/Ubuntu-2020.04.png ___ Python tracker

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: > Victor, do you see a color smiling face in my example or monochromatic or > just a bar? See attached screenshot: fedora32.png. -- Added file: https://bugs.python.org/file49556/fedora32.png ___ Python tracker

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Victor, do you see a color smiling face in my example or monochromatic or just a bar? -- ___ Python tracker ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, on Linux. Ubuntu 2020.04. Tk 8.6.10. X.Org X Server 1.20.8. I tried to report the bug upstream, but failed. I did not use the Tk bugtracker several years, and it was on different computer, so I have no password to my account, and when I tried to

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: Serhiy's test also work as expected. $ wish % label .l -text  Since the Serhiy's test doesn't use Python, is it worth it to track this Tk crash in the Python bug tracker? -- ___ Python tracker

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: Hum, I didn't explain well. My test. I ran: ./python -m idlelib In the IDLE shell, I wrote chr(0x1F604) which displays the emoji as expected: >>> chr(0x1F604) '' -- ___ Python tracker

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I generated a script for testing all characters: with open('withtest.sh', 'w', errors='surrogatepass') as f: for i in range(0x100, 0x11): print(f"echo 'label .l -text \"{chr(i)}\"; exit' | wish 2>/dev/null && echo OK '\\U{i:08x}' {chr(i)!r} || echo

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread STINNER Victor
thoninfo|grep ^tkinter tkinter.TCL_VERSION: 8.6 tkinter.TK_VERSION: 8.6 tkinter.info_patchlevel: 8.6.10 -- ___ Python tracker <https://bugs.python.org/issue42225> ___ _

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I get a crash for chr(128516) ("") in Tk. $ wish % label .l -text  .l % X Error of failed request: BadLength (poly request too large or internal Xlib length error) Major opcode of failed request: 139 (RENDER) Minor opcode of failed request: 20

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-10-31 Thread Terry J. Reedy
New submission from Terry J. Reedy : On my macOS Mohave, 3.10, echoing '\U0001' (# = hex digit) or chr(#) (decimal digits) in IDLE's shell either prints an error box or hangs. On #13153, freezing on macOS was reported for 3.7.6. Until tkinter on Mac works better, we should try

[issue26377] Tkinter dialogs will not close if root window not packed.

2020-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looking at #26376 again, I think Ned's msg260413 identified Sam's problem. "Also note that installing ActiveTcl 8.6.x has no effect if the tkinter in use was linked with an 8.5 version of Tcl/Tk, as the one you are using apparently was. Make sure you

[issue26377] Tkinter dialogs will not close if root window not packed.

2020-10-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: Is this problem still present? I've used the following script to test: import tkinter from tkinter import messagebox root = tkinter.Tk() box = messagebox.showinfo("Title", "A Message") # -- EOF --- With this script I can close the

[issue42142] FAIL tkinter ttk LabeledScale test_resize, and more

2020-10-26 Thread Steve Dower
Steve Dower added the comment: I'm as familiar as anyone else that I'll be able to find, but I've really got no way to explain why the window isn't becoming visible. Is it possible that it's trying to default to the process's nShowCmd value instead of a constant "normal" window size? That

[issue42142] FAIL tkinter ttk LabeledScale test_resize, and more

2020-10-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Steve, we have a new Pipelines-specific intermittent tkinter test failure. Are you familiar with Pipelines, or do you know who is? -- nosy: +steve.dower ___ Python tracker <https://bugs.python.org/issue42

[issue42142] FAIL tkinter ttk LabeledScale test_resize, and more

2020-10-26 Thread E. Paine
E. Paine added the comment: This is strange as these only seem to have started occurring recently (though there hasn't been a change to the tests themselves in a long time). There must be something different about how Azure runs the GUI tests because it was on Azure that the tests on

Re: GUI (tkinter) popularity and job prospects for

2020-10-26 Thread Dietmar Schwertberger
On 23.10.2020 18:52, John Pote wrote: I've used tkinter and wxPython occasionally in the past for 1 off test tasks (and interest). What's the advantage of Qt? Qt does support mobile and touch oriented user interfaces. Also, it does support GUI programs on microcontrollers now on bare-metal

Re: GUI (tkinter) popularity and job prospects for

2020-10-26 Thread Edmondo Giovannozzi
greed. If you want to improve you "hirability" for GUI application > > development, I would probably put Qt first. Then gobject or > > wx. Tkinter would probably be last. > I've used tkinter and wxPython occasionally in the past for 1 off test > tasks (and interest). W

Re: GUI (tkinter) popularity and job prospects for

2020-10-25 Thread Barry Scott
u want to improve you "hirability" for GUI application >> development, I would probably put Qt first. Then gobject or >> wx. Tkinter would probably be last. Agreed. > > I've used tkinter and wxPython occasionally in the past for 1 off test tasks > (and interest).

[issue42142] FAIL tkinter ttk LabeledScale test_resize, and more

2020-10-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Azure Pipelines Ubuntu, as before, but Combobox test_virtual_event. test_virtual_event (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... Timeout (0:20:00)! Thread 0x7fb09e3f3080 (most recent call first): File "/home/vsts/work/1/s/Lib/tk

[issue42142] FAIL tkinter ttk LabeledScale test_resize

2020-10-24 Thread Terry J. Reedy
(most recent call first): File "/home/vsts/work/1/s/Lib/tkinter/__init__.py", line 696 in wait_visibility File "/home/vsts/work/1/s/Lib/tkinter/test/test_ttk/test_extensions.py", line 190 in test_resize ... -- messages: 379543 nosy: serhiy.storchaka, terry.re

Re: GUI (tkinter) popularity and job prospects for

2020-10-23 Thread Terry Reedy
lopment, I would probably put Qt first.  Then gobject or wx. Tkinter would probably be last. I've used tkinter and wxPython occasionally in the past for 1 off test tasks (and interest). What's the advantage of Qt? For you usage, perhaps None. Qt is an *application* framework that includes a

Re: GUI (tkinter) popularity and job prospects for

2020-10-23 Thread Grant Edwards
ty" for GUI application >> development, I would probably put Qt first. Then gobject or >> wx. Tkinter would probably be last. > > I've used tkinter and wxPython occasionally in the past for 1 off test > tasks (and interest). What's the advantage of Qt? I think it may look

Re: GUI (tkinter) popularity and job prospects for

2020-10-23 Thread Christian Gollwitzer
Am 22.10.20 um 23:52 schrieb Paul Rubin: Michael Torrie writes: I doubt you'll find any jobs connected a particular Python GUI toolkit. It would be really nice if there was a way to straightforwardly run Tkinter applications on Android. You'd install a single .apk and that would let you

Re: GUI (tkinter) popularity and job prospects for

2020-10-23 Thread John Pote
en gobject or wx. Tkinter would probably be last. I've used tkinter and wxPython occasionally in the past for 1 off test tasks (and interest). What's the advantage of Qt? John -- https://mail.python.org/mailman/listinfo/python-list

Re: GUI (tkinter) popularity and job prospects for

2020-10-23 Thread Grant Edwards
On 2020-10-22, Terry Reedy wrote: > On 10/22/2020 2:58 PM, Lammie Jonson wrote: > >> I looked at tkinter which seems to have quite a few examples out >> there, but when I searched indeed.com for tkinter and wxpython it >> appeared that there was hardly any job listings

Re: GUI (tkinter) popularity and job prospects for

2020-10-23 Thread Grant Edwards
On 2020-10-22, Michael Torrie wrote: > I doubt you'll find any jobs connected a particular Python GUI toolkit. > Except maybe at Red Hat. A couple years ago my employer was looking for (and hired) a Python wx application developer. > Most likely you'll find Python used in web app development,

Re: GUI (tkinter) popularity and job prospects for

2020-10-22 Thread jfong
Lammie Jonson於 2020年10月23日星期五 UTC+8上午5時20分45秒寫道: > Thanks, > > Yes, I have some sense about how to do job interviews and market myself > which is always an ongoing process. > > I also just have an interest in different technologies that I may want to > investigate as I can get bored with

Re: GUI (tkinter) popularity and job prospects for

2020-10-22 Thread Terry Reedy
On 10/22/2020 2:58 PM, Lammie Jonson wrote: I looked at tkinter which seems to have quite a few examples out there, but when I searched indeed.com for tkinter and wxpython it appeared that there was hardly any job listings mentioning those. Why is that ? I think that commercial desktop

Re: GUI (tkinter) popularity and job prospects for

2020-10-22 Thread 2QdxY4RzWzUUiLuE
On 2020-10-22 at 12:50:43 -0700, Rich Shepard wrote: > On Thu, 22 Oct 2020, Lammie Jonson wrote: > > I looked at tkinter which seems to have quite a few examples out > > there, but when I searched indeed.com for tkinter and wxpython it > > appeared that there was ha

Re: GUI (tkinter) popularity and job prospects for

2020-10-22 Thread Lammie Jonson
Thanks, Yes, I have some sense about how to do job interviews and market myself which is always an ongoing process. I also just have an interest in different technologies that I may want to investigate as I can get bored with certain things a little at times. If some technology seems a

Re: GUI (tkinter) popularity and job prospects for

2020-10-22 Thread Chris Angelico
On Fri, Oct 23, 2020 at 8:39 AM Michael Torrie wrote: > > I was going to look at something like tensorflow perhaps, though I am > > not sure if machine learning is that easy to pickup or not > > Not sure anything difficult and worthwhile, even if it is popular and in > demand, is something you

Re: GUI (tkinter) popularity and job prospects for

2020-10-22 Thread Michael Torrie
On 10/22/20 12:58 PM, Lammie Jonson wrote: > > I have been a rails developer as well as JS/react. I had wanted to > look at python a bit due to it's popularity. > > I looked at tkinter which seems to have quite a few examples out > there, but when I searched indeed.com for tk

Re: GUI (tkinter) popularity and job prospects for

2020-10-22 Thread Tal Einat
Hi Lammie, On Thu, Oct 22, 2020 at 10:03 PM Lammie Jonson wrote: > > I looked at tkinter which seems to have quite a few examples out there, > but when I searched indeed.com for tkinter and wxpython it appeared that > there was hardly any job listings mentioning those. Why is that ?

Re: GUI (tkinter) popularity and job prospects for

2020-10-22 Thread Rich Shepard
On Thu, 22 Oct 2020, Lammie Jonson wrote: I looked at tkinter which seems to have quite a few examples out there, but when I searched indeed.com for tkinter and wxpython it appeared that there was hardly any job listings mentioning those. Why is that ? It's a bit of a demotivating factor to get

GUI (tkinter) popularity and job prospects for

2020-10-22 Thread Lammie Jonson
I have been a rails developer as well as JS/react. I had wanted to look at python a bit due to it's popularity. I looked at tkinter which seems to have quite a few examples out there, but when I searched indeed.com for tkinter and wxpython it appeared that there was hardly any job listings

[issue26376] Tkinter root window won't close if packed.

2020-10-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just reproduced this too with Airbook Mohave. When IDLE's Shell is running, it is linked to an execution subprocess that is initially invisible, unless and until the user creates a visible window. Tk() does this. On Windows, a tk Window icon appears

[issue26376] Tkinter root window won't close if packed.

2020-10-19 Thread Ned Deily
Ned Deily added the comment: Unfortunately, I can reproduce it, or at least odd behavior when run from an IDLE.app edit window on with 3.9.0 on macOS 10.15. By observing the macOS Dock while running this, it looks like a second Python app instance is created while running this. We have seen

[issue26376] Tkinter root window won't close if packed.

2020-10-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I cannot reproduce this issue with Python 3.9 (Python.org installer). Both with "Run Module" and in the interactive shell (both in IDLE) the window will close properly. In both cases the window it too small to show the minimise and maximise buttons (as

[issue41876] Add __repr__ for Tkinter Font objects

2020-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b4d895336a4692c95b4533adcc5c63a489e5e4e4 by Anatoliy Platonov in branch 'master': bpo-41876: Overload __repr__ for tkinter Font objects (GH-22450) https://github.com/python/cpython/commit/b4d895336a4692c95b4533adcc5c63a489e5e4e4

[issue41876] Add __repr__ for Tkinter Font objects

2020-10-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: Interference tkinter and plot from matplotlib

2020-10-01 Thread Pierre Bonville
Thank you, Mr. Gollwitzer. I understand the problem. I'll see what I can do. Regards, P.Bonville Le mer. 30 sept. 2020 à 17:02, Christian Gollwitzer a écrit : > Am 30.09.20 um 15:46 schrieb Pierre Bonville: > > Hi everybody, > > > Interference tkinter and plot from ma

Re: Interference tkinter and plot from matplotlib

2020-09-30 Thread Christian Gollwitzer
Am 30.09.20 um 15:46 schrieb Pierre Bonville: Hi everybody, Interference tkinter and plot from matplotlib You are mixing different ways of control flow. In a GUI program, don't call input(). Use the mainloop() as the very last of your calls, and only work in the callbacks. That means

Interference tkinter and plot from matplotlib

2020-09-30 Thread Pierre Bonville
f I replace 'quit' by 'destroy' in the button command, it works correctly. I looked on various Python forums on the Net, but didn't find an answer. Regards, P.Bonville import tkinter as tk import matplotlib.pyplot as plt r = tk.Tk() b = tk.Button(r, text= r.quit) b = tk.Button(r, text='quit', command=r.q

Re: tkinter and input()

2020-09-29 Thread Terry Reedy
On 9/29/2020 9:48 AM, Pierre Bonville wrote: I have a small problem with the method .quit() of tkinter. What problem? It works for me (3.9 on Win 10). >>> import tkinter as tk >>> r = tk.Tk() >>> b = tk.Button(r, text= r.quit) >>> b = tk.Button(r, tex

tkinter and input()

2020-09-29 Thread Pierre Bonville
Hello everybody, I have a small problem with the method .quit() of tkinter. Below is a sketch of a much larger program, which shows the problem. I would like to run the main program but keeping the tk window on the screen until the end. Presently, execution stops after the first "

[issue41876] Add __repr__ for Tkinter Font objects

2020-09-29 Thread Anatoliy Platonov
Change by Anatoliy Platonov : -- keywords: +patch nosy: +p4m.dev nosy_count: 3.0 -> 4.0 pull_requests: +21479 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22450 ___ Python tracker

[issue41876] Add __repr__ for Tkinter Font objects

2020-09-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a new feature. We do not backport new features to old versions unless they fix some design bug. Nothing bad will happen if we DO NOT backport it. -- ___ Python tracker

[issue41876] Add __repr__ for Tkinter Font objects

2020-09-29 Thread E. Paine
E. Paine added the comment: Serhiy, while I agree this is an enhancement, I don't see that it would break *anyone's* code (this will mostly just affect the REPL output) so is it worth considering a backport? Diohabara, the Python devguide (https://devguide.python.org/) is a very good place

[issue41876] Add __repr__ for Tkinter Font objects

2020-09-29 Thread diohabara
diohabara added the comment: Hi, Storchaka!. I would like to tackle this issue. Because I am new to Python bug tracking, I am unsure that this is the right approach to bug fixing. -- nosy: +diohabara ___ Python tracker

[issue41851] tkinter: add font equal methods

2020-09-28 Thread Tal Einat
Change by Tal Einat : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___

[issue41851] tkinter: add font equal methods

2020-09-28 Thread E. Paine
Change by E. Paine : -- pull_requests: +21465 pull_request: https://github.com/python/cpython/pull/22434 ___ Python tracker ___ ___

[issue41876] Add __repr__ for Tkinter Font objects

2020-09-28 Thread Serhiy Storchaka
: Tkinter keywords: easy messages: 377603 nosy: serhiy.storchaka priority: normal severity: normal stage: needs patch status: open title: Add __repr__ for Tkinter Font objects type: enhancement versions: Python 3.10 ___ Python tracker <https://bugs.python.

[issue41851] tkinter: add font equal methods

2020-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Tal that negating size would be useless feature, and that we do not need an alternate equal() method. When we want to test that two strings are equal ignoring case we do not call a special method equalignorecase(), we just test that

[issue41851] tkinter: add font equal methods

2020-09-28 Thread Tal Einat
Tal Einat added the comment: P.P.S. Re-reading that piece of code for IDLE's font config dialog, that actually looks to be intentional and correct. -- ___ Python tracker ___

[issue41851] tkinter: add font equal methods

2020-09-28 Thread Tal Einat
bility - I've done a *lot* of work with Tkinter and had never heard of the .actual() method. However, adding another comparison method won't help with that by itself. > I am reluctant to touch __eq__. Any ideas? You wrote that "Checking to see if the fonts are the same Tk object is also

[issue41851] tkinter: add font equal methods

2020-09-26 Thread E. Paine
that does not do the same thing as `==` is confusing (you just have to look at Java and all the confusion over using `==` on strings - a 'gotcha' for every new Java learner). However, as I said above, I am reluctant to touch __eq__. Any ideas? -- title: tkinter: add font neg and equal me

[issue41851] tkinter: add font neg and equal methods

2020-09-26 Thread Tal Einat
Tal Einat added the comment: As for an equal() method, I think that adding equal() which is different than the existing __eq__() would be a source of confusion. I also think using it wouldn't add anything, and would be less clear, compared to font1.actual() == font2.actual(). I'm

[issue41851] tkinter: add font neg and equal methods

2020-09-26 Thread Tal Einat
Tal Einat added the comment: Why would negating the font size convert it from points to pixels?? It seems to be coming straight from Tk; is this documented anywhere? I'd greatly prefer that we use a properly named property instead, e.g. .pixel_size. -- nosy: +taleinat

[issue41851] tkinter: add font neg and equal methods

2020-09-24 Thread E. Paine
New submission from E. Paine : I think it would be helpful to add these methods to the tkinter font class. Starting with the equal method, I have found it very useful to be able to compare tkinter fonts based on their value rather than just name. I used this, for example, in #28694 to ensure

[issue41851] tkinter: add font neg and equal methods

2020-09-24 Thread E. Paine
Change by E. Paine : -- keywords: +patch pull_requests: +21436 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22396 ___ Python tracker ___

[issue28694] tkinter interface to fontchooser

2020-09-24 Thread E. Paine
e up to the user to ensure they are on a compatible ​system). Applications like IDLE, which try to be compatible with older ​versions of Tk, should provide their own fallback interface rather than ​building such an interface into tkinter. I am not the biggest fan of the current implementation of ismodal as ​this

[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

[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

<    4   5   6   7   8   9   10   11   12   13   >