[issue32863] Missing support for Emojis in tkinter
New submission from Victor Domingos : In the current Python 3.7.0b1, on macOS 10.12.6 Sierra (also on 10.11 El Capitan), which seems to include a newer Tcl/tk version, it still does not support a variety of UTF characters, including Emoji characters that nowadays are of very common use. A quick search on the web returns some hints that maybe Tcl/tk could be compiled with different options in order to unlock those characters: http://wiki.tcl.tk/515 https://core.tcl.tk/tk/tktview/6c0d7aec6713ab6a7c3e12dff7f26bff4679bc9d I am not sure if it is officially supported by now, but at least for me, as a Python and tkinter user, it would be a great improvement. Thanks in advance, With best regards, Victor Domingos My current version: Python 3.7.0b1 (v3.7.0b1:9561d7f501, Jan 30 2018, 19:10:11) [Clang 6.0 (clang-600.0.57)] on darwin Sample code that fails: import tkinter as tk import tkinter.ttk as ttk app = tk.Tk() b = ttk.Button(app, text="📩") --- Traceback (most recent call last): File "", line 1, in File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/ttk.py", line 614, in __init__ Widget.__init__(self, master, "ttk::button", kw) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/ttk.py", line 559, in __init__ tkinter.Widget.__init__(self, master, widgetname, kw=kw) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/__init__.py", line 2293, in __init__ (widgetName, self._w) + extra + self._options(cnf)) _tkinter.TclError: character U+1f4e9 is above the range (U+-U+) allowed by Tcl -- components: Tkinter, Unicode, macOS messages: 312279 nosy: Victor Domingos, ezio.melotti, gpolo, ned.deily, ronaldoussoren, serhiy.storchaka, vstinner priority: normal severity: normal status: open title: Missing support for Emojis in tkinter type: behavior versions: Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue32863> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32864] Visual glitches when animating ScrolledText instances using place geometry manager
New submission from Victor Domingos : In the current Python 3.7.0b1, on macOS 10.12.6 Sierra (also on 10.11 El Capitan), which seems to include a newer Tcl/tk version, there seems to be some visual glitches when using the place() geometry manager to animate a ttk.Frame containing ScrolledText widgets. These issues do not happen when running the same code on current Python 3.6. Thanks in advance, With best regards, Victor Domingos My current version: Python 3.7.0b1 (v3.7.0b1:9561d7f501, Jan 30 2018, 19:10:11) [Clang 6.0 (clang-600.0.57)] on darwin Here is an excerpt of my code (animated placement of the container frame): def show_entryform(self, *event): if not self.is_entryform_visible: self.is_entryform_visible = True self.btn_add.configure(state="disabled") # Formulário de entrada de dados (fundo da janela) self.my_statusbar.lift() if SLOW_MACHINE: self.entryframe.place( in_=self.my_statusbar, relx=1, y=0, anchor="se", relwidth=1, bordermode="outside") else: for y in range(-30, -12, 6): self.entryframe.update() y = y**2 self.entryframe.place( in_=self.my_statusbar, relx=1, y=y, anchor="se", relwidth=1, bordermode="outside") for y in range(-12, -3, 3): self.entryframe.update() y = y**2 self.entryframe.place( in_=self.my_statusbar, relx=1, y=y, anchor="se", relwidth=1, bordermode="outside") for y in range(-3, 0, 1): self.entryframe.update() y = y**2 self.entryframe.place( in_=self.my_statusbar, relx=1, y=y, anchor="se", relwidth=1, bordermode="outside") self.entryframe.lift() --- And the base class definition for the problematic widgets: class LabelText(ttk.Frame): """ Generate an empty tkinter.scrolledtext form field with a text label above it. """ def __init__(self, parent, label, style=None, width=0, height=0): ttk.Frame.__init__(self, parent) if style: self.label = ttk.Label(self, text=label, style=style, anchor="w") else: self.label = ttk.Label(self, text=label, anchor="w") self.scrolledtext = ScrolledText(self, font=("Helvetica-Neue", 12), highlightcolor="LightSteelBlue2", wrap='word', width=width, height=height) self.label.pack(side="top", fill="x", expand=False) self.scrolledtext.pack(side="top", fill="both", expand=True) -- components: Tkinter, macOS files: issues.jpg messages: 312281 nosy: Victor Domingos, gpolo, ned.deily, ronaldoussoren, serhiy.storchaka priority: normal severity: normal status: open title: Visual glitches when animating ScrolledText instances using place geometry manager type: behavior versions: Python 3.7, Python 3.8 Added file: https://bugs.python.org/file47450/issues.jpg ___ Python tracker <https://bugs.python.org/issue32864> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32864] Visual glitches when animating ScrolledText instances using place geometry manager
Victor Domingos added the comment: The new beta (Python 3.7.0b2 with Tcl/tk 8.6.8) seems to have that issue solved. Nice! :) -- ___ Python tracker <https://bugs.python.org/issue32864> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33635] OSError when using pathlib.Path.rglob() to list device files
New submission from Victor Domingos : This method fails with an error when it finds a character or block device (like those found in /dev on macOS). However, in the same machine, with the same Python version, the alternative os.walk() performs basically the same job with no errors. I am not sure if that error is the expected behaviour, but I wasn't able to find a clear explanation in the docs. Anyway, it seems to me, as a user, that the os.walk() error-less behaviour is more desirable. ``` $ python3 Python 3.7.0b4 (v3.7.0b4:eb96c37699, May 2 2018, 04:13:13) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> from pathlib import Path >>> [f for f in Path(os.path.expanduser('/dev')).rglob("*") if f.is_file()] Traceback (most recent call last): File "", line 1, in File "", line 1, in File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/pathlib.py", line 1344, in is_file return S_ISREG(self.stat().st_mode) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/pathlib.py", line 1140, in stat return self._accessor.stat(self) OSError: [Errno 9] Bad file descriptor: '/dev/fd/3' >>> ``` -- components: Library (Lib) messages: 317566 nosy: Victor Domingos priority: normal severity: normal status: open title: OSError when using pathlib.Path.rglob() to list device files type: crash versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue33635> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33635] OSError when using pathlib.Path.rglob() to list device files
Change by Victor Domingos : -- components: +IO, macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker <https://bugs.python.org/issue33635> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com