git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] gitk: workaround Tcl/Tk Cmd-TAB behavior on OSX

From
TSTair Sabirgaliev <tair.sabirgaliev@bee.kz>
Date
Apr 11, 2013, 04:36 UTC
Message-ID
<51663DBE.2080603@bee.kz>
In-Reply-To
<CAJDDKr76K_-d6JSgv67DcXnZybpxkTjYPJxdObU3wrn+nYV3dw@mail.gmail.com>
On 4/11/13 8:46 AM, David Aguilar wrote:
Show 14 quoted lines
> Apologies because I don't know the Tk API very well.
>
> In Qt there is an API method to raise windows -- QWidget::raise().
>
> Is there no similar API in Tk?
>
> I seems like this may be related:
>
> http://wiki.tcl.tk/9457
>
> ..but it seems that -topmost may not be exactly the same thing.
>
> That said, if there's no portable way to do it, then this is certainly a
> workaround.
Yes, I tried that one. Here is a quick test:

========== hello.tcl ============= #!/bin/sh # Tcl ignores the next line -*- tcl -*- \ exec wish "$0" -- "$@"

package require Tk

grid [ttk::button .b -text "Hello World"] wm attributes . -topmost true ==================================

I'm not sure I'm doing it right, but it doesn't work.

Look like Tcl/Tk dev are very paranoic about windows created from Terminal/shell scripts: they don't let them take over , even if it is desired.

Previous: Tair Sabirgaliev
Message 7 of 7 in “gitk: workaround Tcl/Tk Cmd-TAB behavior on OSX”
  1. gitk: workaround Tcl/Tk Cmd-TAB behavior on OSXTair Sabirgaliev, Apr 10, 2013
  2. Tair SabirgalievApr 10, 2013
  3. Paul MackerrasApr 20, 2013
  4. Tair SabirgalievApr 20, 2013
  5. Stefan HallerApr 23, 2013
  6. Tair SabirgalievApr 24, 2013
  7. Tair SabirgalievApr 11, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.