Tk Source Code

View Ticket
Login
Ticket UUID: 7c28f8351e3cebeb654b3aa5af6f00cce04085d0
Title: Restraint file dialogs if they don't fit on the screen
Type: RFE Version: main
Submitter: oehhar Created on: 2025-08-08 14:20:58
Subsystem: 37. [tk_get*File] Assigned To: oehhar
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2025-08-12 07:47:55
Resolution: None Closed By: nobody
    Closed on:
Description:

On small x screen size, tk_getOpenFile and friends are larger than the screen. This makes the dialog hard to use.

Proposal is to show them in zoom state in this case.

A typical application is Androwish, but this may also hit other screens with limited place.

An implementation is proposed in branch [7c28f835-file-dialog-zoom-small-screen], starting from commit [0b451ef2].

Note: this ticket is a sister of ticket [e19f1d891] and requires its functions to get the decoration frame width.

Any comment welcome !

Harald

User Comments: oehhar added on 2025-08-12 07:47:55:

CI is all green.

I will wait for Francois.

If it is ok for him, I will merge the work by Csaba.

The fullscreen solution is IMHO only applicable for Android and is not merged to plain Tk. The ticket and screenshots are here: https://androwish.org/home/info/043a010d9e9fdcb3


oehhar added on 2025-08-11 07:33:21:

Great work was done by Csaba to constraint the windows on the physical screen, if it is larger.

This work is in branch [7c28f835-file-dialog-zoom-small-screen-limit] starting with commit [7c5778e6]

A screenshot on Android is attached with the file name "choosedir_constraint.png".

IMHO this is an improvement for all Tk applications.

Thanks for all, Harald


Attachments: