Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #10376

Maximize already running tkinter program on invocation

Date 2011-07-27 10:18 +0200
Subject Maximize already running tkinter program on invocation
From Steven Kauffmann <steven.kauffmann@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1529.1311754757.1164.python-list@python.org> (permalink)

Show all headers | View raw


Hi all,

I have written a small GUI application in python 3.x using the tkinter
module. Program is running fine, but multiple instances of the program
can now be created. I would like to reduce the number of instances of
the program to only 1 instance. I know that this is possible by using
a singleton class. This way it's possible to check if the program is
already running or not.

When I invoke the program and it detects that the program is already
running, is it then possible to maximize the already running program?

I can find a lot of examples about singleton classes in python on the
web, but nothing about showing the already running application when 1
instance of the program already exists. Is there a way to realize this
in python?

I'm now doing the development on a linux machine, but the final
program should work on Windows.

Cheers,

Steven

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Maximize already running tkinter program on invocation Steven Kauffmann <steven.kauffmann@gmail.com> - 2011-07-27 10:18 +0200
  Re: Maximize already running tkinter program on invocation Peter Otten <__peter__@web.de> - 2011-07-27 13:54 +0200
  Re: Maximize already running tkinter program on invocation Francesco Bochicchio <bieffe62@gmail.com> - 2011-07-27 11:17 -0700

csiph-web