New submission from Tao Chen <[email protected]>:
[Brief Description]
Python 3.7.0 IDLE. After create one Menu instance, and invoke it's config() or
configure() method without any parameter, python print UnicodeDecodeError.
[Walk around]
menubar = Menu(root)
menubar.config(font=('Arial'))
[LOG]
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit
(AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> from tkinter import *
>>> root = Tk()
>>> menubar = Menu(root)
>>> menubar.config()
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
menubar.config()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 2: invalid
continuation byte
>>> menubar.cget('font')
Traceback (most recent call last):
File "<pyshell#15>", line 1, in <module>
menubar.cget('font')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 2: invalid
continuation byte
>>> platform.uname()
uname_result(system='Windows', node='xxx', release='7', version='6.1.7601',
machine='AMD64', processor='Intel64 Family 6 Model 78 Stepping 3, GenuineIntel')
----------
components: Tkinter
messages: 324389
nosy: sbellct
priority: normal
severity: normal
status: open
title: UnicodeDecodeError when invoke method configure() of Menu instance
type: resource usage
versions: Python 3.7
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue34550>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com