[issue21341] Configuring 'font' with ttk.Style for 'TEntry' does not change displayed font
New submission from Barron: After using the configure() method of a ttk.Style object to configure the font of TEntry, Entry widgets will still have the original default font. The following 6 lines will demonstrate this in IDLE: >>> from tkinter import ttk >>> s = ttk.Style() >>> s.configure('TButton', font = ('Courier', 24)) >>> s.configure('TEntry', font = ('Courier', 24)) >>> ttk.Button(text = 'Button').pack() >>> ttk.Entry().pack() The Button will be displayed using the newly configured font, but the Entry widget will retain the default font. Calling the lookup() method after the above code reveals the following: >>> s.lookup('TEntry', 'font') 'Courier 24' This shows that the font property for TEntry is getting set properly, but it is not being displayed. Configuring the font property directly on individual Entry widgets does display correctly. -- components: Tkinter messages: 217114 nosy: barron priority: normal severity: normal status: open title: Configuring 'font' with ttk.Style for 'TEntry' does not change displayed font type: behavior versions: Python 3.4 ___ Python tracker <http://bugs.python.org/issue21341> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11457] os.stat(): add new fields to get timestamps as Decimal objects with nanosecond resolution
Changes by Eric G. Barron : -- nosy: +ericography ___ Python tracker <http://bugs.python.org/issue11457> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input
Changes by Barron Henderson : -- components: +Library (Lib) versions: +Python 2.5 ___ Python tracker <http://bugs.python.org/issue5476> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input
New submission from Barron Henderson : Initializing a timedelta object with numpy.int32 arguments give mixed results; it fails for days keyword, gives bad results for minutes, and give correct results for seconds/microseconds. Failure confirmed on Linux i686 (Py 2.5.2; numpy 1.2.1) and OS X 10.5.6 (Py 2.5.1; 1.2.1).Test case below: from datetime import timedelta from numpy import int32 from numpy import int32 from datetime import timedelta assert timedelta(seconds = 36) == timedelta(seconds = int32(36)) print 'pass 36 sec' assert timedelta(microseconds = 36) == timedelta(microseconds = int32(36)) print 'pass 36 usec' assert timedelta(minutes = 35) == timedelta(minutes = int32(35)) print 'pass 35 min' assert timedelta(minutes = 36) == timedelta(minutes = int32(36)) print 'pass 36 min' # returns bad value assert timedelta(days = 36) == timedelta(days = int32(36)) print 'pass 36 days' # fails SystemError: Objects/longobject.c:223 -- messages: 83470 nosy: barronh severity: normal status: open title: datetime: timedelta(minutes = i) silently fails with numpy.int32 input ___ Python tracker <http://bugs.python.org/issue5476> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com