[issue41155] Tkinter -postoffset not working for TCombobox

2020-06-29 Thread Svetoslav Inkolov


New submission from Svetoslav Inkolov :

Doing a configuration of the tkinter combobox for the dropdown list with:

style = ttk.Style()
style.configure('TCombobox', postoffset=(0,0,width,0))

results in no changing of the combobox.

In Python 2.7.16 or generally in python 2 this functionality works well.

Please see the sample source-code attached.

--
components: Tkinter
files: test_variable_dropdown-width_of_combobox.py
messages: 372553
nosy: Sveti007
priority: normal
severity: normal
status: open
title: Tkinter -postoffset not working for TCombobox
type: behavior
versions: Python 3.8
Added file: 
https://bugs.python.org/file49272/test_variable_dropdown-width_of_combobox.py

___
Python tracker 
<https://bugs.python.org/issue41155>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41155] Tkinter -postoffset not working for TCombobox

2020-06-30 Thread Svetoslav Inkolov


Svetoslav Inkolov  added the comment:

Thanks to E. Paine's reply:

This is a strange bug, as the fix is simply to explicitly give the style 
(`style='TCombobox'`)

--
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue41155>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com