Skip to content

Prevent issue with new windows using sourced TkCon#9

Open
mtmcp wants to merge 1 commit into
bohagan1:masterfrom
tclmonster:fix-new-window
Open

Prevent issue with new windows using sourced TkCon#9
mtmcp wants to merge 1 commit into
bohagan1:masterfrom
tclmonster:fix-new-window

Conversation

@mtmcp
Copy link
Copy Markdown
Contributor

@mtmcp mtmcp commented Apr 18, 2026

When right-clicking and selecting "New Window" TkCon will open a blank window unless ::argv0 is set to tkcon.tcl. In other words, running TkCon as the main script like wish tkcon.tcl.

This PR disables the New Window (users can create new tabs still) for when TkCon is sourced:

source tkcon.tcl
tkcon show

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant