This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Tkinter -postoffset not working for TCombobox
Type: behavior Stage: resolved
Components: Tkinter Versions: Python 3.8
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Sveti007, epaine
Priority: normal Keywords:

Created on 2020-06-29 08:31 by Sveti007, last changed 2022-04-11 14:59 by admin. This issue is now closed.

File name Uploaded Description Edit Sveti007, 2020-06-29 08:31 Sample code to test the bug
postoffset.tcl epaine, 2020-06-29 16:11
Messages (3)
msg372553 - (view) Author: Svetoslav Inkolov (Sveti007) Date: 2020-06-29 08:31
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.
msg372599 - (view) Author: E. Paine (epaine) * Date: 2020-06-29 16:11
This is a strange bug, as the fix is simply to explicitly give the style (`style='TCombobox'`). This is, however, a Tcl/Tk issue as it can be reproduced in wish (I used the script attached). I therefore ask you close this issue as third party (you can take it up with the Tcl team if you want).
msg372661 - (view) Author: Svetoslav Inkolov (Sveti007) Date: 2020-06-30 07:22
Thanks to E. Paine's reply:

This is a strange bug, as the fix is simply to explicitly give the style (`style='TCombobox'`)
Date User Action Args
2022-04-11 14:59:33adminsetgithub: 85327
2020-06-30 07:22:17Sveti007setstatus: open -> closed

messages: + msg372661
stage: resolved
2020-06-29 16:11:10epainesetfiles: + postoffset.tcl
nosy: + epaine
messages: + msg372599

2020-06-29 08:31:35Sveti007create