| Ticket UUID: | 1863942 | |||
| Title: | Sizing trouble on tk_getOpenFile dialog | |||
| Type: | Bug | Version: | obsolete: 8.5.0 | |
| Submitter: | jack_r | Created on: | 2008-01-04 12:52:37 | |
| Subsystem: | 37. [tk_get*File] | Assigned To: | hobbs | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2026-10-22 17:22:34 | |
| Resolution: | Fixed | Closed By: | serhiy.storchaka | |
| Closed on: | 2026-09-25 08:06:53 | |||
| Description: |
Platform: Debian GNU/Linux testing on i386
Window manager: fluxbox 1.0.0+deb1-4
Tcl version: 8.5.0
Tk version: 8.5.0
Description:
When a tk_getOpenFile dialog is open, it is open with a specific size and immediately get resized.
Resizing make the file list so small that reading contents is unpossible.
Comments:
This happen more than 50% of the time (seems more often if I use ttk::label and ttk::button in below sample test code)
If first dialog opening time is OK, it will always be OK.
If first dialog opening time is not OK, it will always be not OK.
See attached picture
If I change window manager to icewm, it works fine all the time.
I get the same issue with ActiveTcl installer at the time of choosing directories and with Tk widget.tcl demo when trying "File selection dialog" demo.
Trouble has been reproduced with Debian , etcl-1.0-rc25, ActiveTcl8.5.0.0.283511-linux-ix86-threaded.
Trouble did not happen with Tcl/Tk 8.4.16 (Debian) or tclkit8.5b1.
LANG setting has no influence (tryed with fr_FR.UTF-8 and C)
Sample test code:
package require Tk
set ::filename "File:"
proc getFilename {} {
set ::filename "File:"
append ::filename [tk_getOpenFile -title "Choose a file"]
}
proc main {} {
label .lblSelect -textvariable ::filename
button .btnSelect -text "Click to select a file" -command { getFilename }
pack .lblSelect -anchor w -side top
pack .btnSelect -side top
wm title . "Test of tk_getOpenFile"
}
main
| |||
| User Comments: |
serhiy.storchaka added on 2026-09-25 08:06:53:
Fixed in 8.5.1 by [97048e9881]: ttk widgets no longer recomputed their layout and requested a new size on the first ConfigureNotify. Bisected with fluxbox 1.3.7 using the script below: [316f0f8777] shrinks the dialog, [97048e9881] does not. Closing. jack_r added on 2008-02-20 02:15:31: Logged In: YES user_id=1330923 Originator: YES Trouble seems to be solved with Tcl 8.5.1 / Tk 8.5.1 Check were made with: - ActiveTcl8.5.1.0.284069-linux-ix86-threaded - Debian Lenny Tcl 8.5.1-1 / Tk 8.5.1-1 Thanks jack_r added on 2008-01-04 19:52:37: File Added - 260771: bugreport_tk_getOpenFile.jpg | |||
Attachments:
- bugreport_tk_getOpenFile.jpg [download] added by jack_r on 2008-01-04 19:52:37. [details]
