473,326 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

[Tkinter] how to keep a window above all other OS windows?

Hi all,
how to keep a Tkinter window above all other OS windows (i.e.
including those ones from other programs)?

Thank you in advance,
Dmitrey
Sep 23 '08 #1
4 1758
On Sep 23, 11:21*pm, dmitrey <dmitrey.kros...@scipy.orgwrote:
Hi all,
how to keep a Tkinter window above all other OS windows (i.e.
including those ones from other programs)?

Thank you in advance,
Dmitrey
I have put [Tkinter] into topic of my message but somehow it has been
removed.
D.
Sep 23 '08 #2
On Sep 23, 3:34*pm, dmitrey <dmitrey.kros...@scipy.orgwrote:
On Sep 23, 11:21*pm, dmitrey <dmitrey.kros...@scipy.orgwrote:
Hi all,
how to keep a Tkinter window above all other OS windows (i.e.
including those ones from other programs)?
Thank you in advance,
Dmitrey

I have put [Tkinter] into topic of my message but somehow it has been
removed.
D.
If you can get the handle of the window from the Tk framework, use the
os call in 'ctypes'. Windows' call is ShowWindow( handle,
HWND_TOPMOST ) I think.
Sep 24 '08 #3
In message <dq******************************@earthlink.com> , Dennis Lee
Bieber wrote:
{I miss the Amiga --
where one had the option to push a window to the back /without/ losing
focus... made it useful for reading one window while touch-typing data
into the "hidden" window}
This sort of thing should be configurable in many X11-based window managers.
Sep 26 '08 #4
On Sep 26, 10:04*am, Dennis Lee Bieber <wlfr...@ix.netcom.comwrote:
On Fri, 26 Sep 2008 19:52:59 +1200, Lawrence D'Oliveiro
<l...@geek-central.gen.new_zealanddeclaimed the following in
comp.lang.python:
This sort of thing should be configurable in many X11-based window managers.

* * * * Maybe... But I'm stuck with a MicroSloth world -- at least they
didn't decide 1 mouse button is all anyone would need <G>
There's some useful information at http://epydoc.sourceforge.net/stdlib....Wm-class.html.
>>from Tkinter import *
w = Tk()
w.attributes('-topmost', True)
''
>>w.mainloop()
The window stays on top.
Sep 26 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Thomas Nücker | last post by:
Hi! I am creating a dialog-box within my application, using tkinter. The problem is the following: After the dialogbox is started, the main application window comes again to top and the...
3
by: DoubleM | last post by:
Hi, I'm running Python2.3.3c1 on Mandrake 9.1 The following code is designed to bring up a window with a button labeled "popup". Clicking on the popup buttons triggers a secondary window with...
1
by: george | last post by:
Greetings to all experts. I'm running Python 2.3/Pythonwin 1.63 on Windows 98. I would like to create a window with Tkinter, that is always on top of the screen. In Tkinter.py, Line 1375 f.,...
2
by: Elbert Lev | last post by:
#When I'm running this script on my windows NT4.0 box, #every time dialog box is reopened there is memory growth 384K. #Bellow is the text I sent to Stephen Ferg (author of easygui) # I have...
6
by: Richard Lewis | last post by:
Hi there, I've got a tree control in Tkinter (using the ESRF Tree module) but I can't get it to layout how I want it. I'd like to have it so that it streches north/south (anchored to the top...
4
by: john.orlando | last post by:
Hello, I'm a newbie to Python (literally, within the last two weeks), and I am playing around with Tkinter to build some simple GUIs. I am attempting to build a simple class that displays a GIF. ...
5
by: H J van Rooyen | last post by:
Hi, I am struggling to get the pack method to do what I intend. I am trying to display user input in a seperate window, along with a little description of the field, something like this: ...
44
by: bg_ie | last post by:
Hi, I'm in the process of writing some code and noticed a strange problem while doing so. I'm working with PythonWin 210 built for Python 2.5. I noticed the problem for the last py file...
3
by: J-Burns | last post by:
Hello. Im a bit new to using Tkinter and im not a real pro in programming itself... :P. Need some help here. Problem 1: How do I make something appear on 2 separate windows using Tkinter? By...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.