473,324 Members | 2,313 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,324 software developers and data experts.

wxPython - question

How can I remove program entry from taskbar (not tray)?

Artur

--
Before the Goat of Mendes... we all must take our turn | Artur M. Piwko
Into the magic circle... where still the fire burns | mailto:s/_/./
We're spinning round and round... until one takes a fall | -- Mercyful Fate
The fallen one will not return, the fallen one must burn | "Witches' Dance"
Jul 18 '05 #1
7 2678
Artur M. Piwko wrote:
How can I remove program entry from taskbar (not tray)?


By reading the docs and using the right flags. :)

(I've been using wx for two weeks.)

in wxFrame:

wxFRAME_NO_TASKBAR - Creates an otherwise normal frame but it
does not appear in the taskbar under Windows (note that it
will minimize to the desktop window which may seem strange
to the users and thus it might be better to use this style
only without wxMINIMIZE_BOX style). Has no effect under
other platforms.

so-

from wxPython.wx import *

class MyFrame(wxFrame):
def __init__(self):
style = wxDEFAULT_FRAME_STYLE | wxFRAME_NO_TASKBAR

wxFrame.__init__(self, None, -1, "Taskbar?", style=style)

if __name__ == "__main__":
a = wxPySimpleApp()
w = MyFrame()
w.Show()
a.MainLoop()

-tom!
Jul 18 '05 #2
In the darkest hour on Thu, 10 Jul 2003 18:12:55 -0700,
Tom Plunket <to***@fancy.org> screamed:
By reading the docs and using the right flags. :)

(I've been using wx for two weeks.)

Me - 2 days (-;
wxFRAME_NO_TASKBAR - Creates an otherwise normal frame but it


Thanks. I was looking for function and this is a style...
I am fighting right now with setting/resetting this flag on live frame.

Artur

--
Before the Goat of Mendes... we all must take our turn | Artur M. Piwko
Into the magic circle... where still the fire burns | mailto:s/_/./
We're spinning round and round... until one takes a fall | -- Mercyful Fate
The fallen one will not return, the fallen one must burn | "Witches' Dance"
Jul 18 '05 #3
Artur M. Piwko wrote:
In the darkest hour on Thu, 10 Jul 2003 18:12:55 -0700,
Tom Plunket <to***@fancy.org> screamed:
By reading the docs and using the right flags. :)

(I've been using wx for two weeks.)

Me - 2 days (-;

wxFRAME_NO_TASKBAR - Creates an otherwise normal frame but it

Thanks. I was looking for function and this is a style...
I am fighting right now with setting/resetting this flag on live frame.

Artur


I don't know about this one in particular, but there are very few styles
which can be reset after the window is created. You might consider
creating a new frame with the appropriate style when you want to switch
to a different style.

David

Jul 18 '05 #4
"Artur M. Piwko" <pipen@beast_tu_kielce.pl> wrote:
How can I remove program entry from taskbar (not tray)?


PLEASE resist the temptation to built Yet Another Tray Application. Win32
programmers seem to use the tray icons as a sign of their guruness, and
every one of them seems to think that his application is so studly that it
must occupy permanent real estate on my desktop. I've seen some trays that
bloat to 20 or 30 icons.

Don't do it. Your application just isn't that important. If you need to
notify me of something, I find nothing wrong with a good old-fashioned
dialog box.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jul 18 '05 #5
"Artur M. Piwko" <pipen@beast_tu_kielce.pl> wrote:

In the darkest hour on Sat, 12 Jul 2003 21:55:39 -0700,
Tim Roberts <ti**@probo.com> screamed:
How can I remove program entry from taskbar (not tray)?


PLEASE resist the temptation to built Yet Another Tray Application. Win32
programmers seem to use the tray icons as a sign of their guruness, and
every one of them seems to think that his application is so studly that it
must occupy permanent real estate on my desktop. I've seen some trays that
bloat to 20 or 30 icons.

Don't do it. Your application just isn't that important. If you need to
notify me of something, I find nothing wrong with a good old-fashioned
dialog box.


I am writing Jabber/others messenger. In this case, tray icon is not a sign of
guruness, but user friendliness.


I disagree. That is strictly a matter of opinion.

Now, a tray icon that does not exist until some actionable event occurs is
probably a very natural UI, but the same thing could be achieved by
plopping up a dialog box. Even if I am running your messenger, yours is
not the only application I'm running by a long shot.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jul 18 '05 #6
In the darkest hour on Mon, 14 Jul 2003 22:13:20 -0700,
Tim Roberts <ti**@probo.com> screamed:
I am writing Jabber/others messenger. In this case, tray icon is not a sign of
guruness, but user friendliness.


I disagree. That is strictly a matter of opinion.

Now, a tray icon that does not exist until some actionable event occurs is
probably a very natural UI, but the same thing could be achieved by
plopping up a dialog box. Even if I am running your messenger, yours is
not the only application I'm running by a long shot.


And all this is the matter of user configuration.

Artur

--
Before the Goat of Mendes... we all must take our turn | Artur M. Piwko
Into the magic circle... where still the fire burns | mailto:s/_/./
We're spinning round and round... until one takes a fall | -- Mercyful Fate
The fallen one will not return, the fallen one must burn | "Witches' Dance"
Jul 18 '05 #7
JanC wrote:
but the same thing could be achieved by plopping up a dialog box.


That's why almost everybody is using a pop-up stopper these days.


Heh no doubt. I love nothing more than furiously coding away on
something, a dialog pops up from somewhere, and the next <space>
that I type dismisses the dialog before I even notice it on
screen.

-tom!

--
There's really no reason to send a copy of your
followup to my email address, so please don't.
Jul 18 '05 #8

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

Similar topics

1
by: Anand | last post by:
I am calling a python script from LabVIEW. This is achieved by making a dll call to python22.dll. It works perfectly well for most of my code. I now want to throwup dialog boxes from python. It...
3
by: Equis Uno | last post by:
Hi, I'm trying to run some Python software I downloaded off of sf.net. It's called Boa. It uses wxPython. It appears my install of Python cannot see my install of wxPython.
8
by: Erik Johnson | last post by:
I am looking for some input on GUI libraries. I want to build a Python-driven GUI, but don't really understand the playing field very well. I have generally heard good things about wxPython. I...
14
by: Rod W | last post by:
I'm just starting out on Python but my primary goal is to provide applications with some user interface (GUI). Can someone point me to a good comparison of whether I should use wxPython (with...
4
by: KvS | last post by:
Hi all, I'm pretty new to (wx)Python so plz. don't shoot me if I've missed something obvious ;). I have a panel inside a frame, on which a Button and a StaticText is placed: self.panel =...
2
by: OpenPavilion | last post by:
Hello, did anyone succeed in combining wxpython and a 3d engine (pyogre, crystalblend, panda3d, soya etc.) ? I would like to create an application, which uses wxpython tree, menu and grid...
1
by: Steven W. Orr | last post by:
python-2.3.5 wx-2.6 I just bought the wxPython In Action book and I see that all the examples say to import wx All of our pre-existing code was horribly doing a from wxPython import * I...
4
by: python | last post by:
I'm looking at rewriting some legacy VB applications and am pondering which of the following techniques to use: 1. Browser based GUI with local web server (Browser + wsgiref.simple_server) (I'm...
3
by: mistersulu | last post by:
Hi all: I'm using a wx.ListView object with a multi-threaded wxPython app. The list is dynamically generated and accessed across two or more threads. In spite of the fact that I have checks to...
0
by: gooli | last post by:
The best thing I've found until now is XRCed. It has it's quirks and pitfalls, but it fits the bill. Personally I prefer the previous version (the one that comes with wxPython 2.8.6) and don't...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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

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.