473,583 Members | 3,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[PY GUI] interest function in python GUI(wxpython,py qt) program.wxpytho n,pyqt

hi,

I'm working in python 5 months. I think it's very cool language.
I do a p2p python program GUI.
First I make a software by wxpython. But I find wxpython use many many
memory.
Second I use PYQT. But memory use still big.
But but but when I minimize the windows to taskbar, a fantasy
something
happened. memory use very very low when windows minimize.

So I test it in wxPython. It's same as pyqt. Before I minimize windows
to tray, and hide main windows. This way I just minimize to
taskbar,don't
hide to tray. memory use very low.

I don't know how to program wxpython software can hide to tray and get
lower memory use.although current computer's memory very big.

Ulysses
Jul 18 '05 #1
4 5009
ulysses wrote:
I'm working in python 5 months. I think it's very cool language.
I do a p2p python program GUI.
First I make a software by wxpython. But I find wxpython use many many
memory.
All GUIs tend to have a certain overhead. A fairly typical wxPy program
will be (at startup) around 20 MB, but something really big like Boa
gets to about 35 MB and something smallish can be around 15 MB. I don't
find this unacceptable on reasonably modern systems. Other apps are
roughly in the same range: Word, MSIE, Mozilla Thunderbird, Opera and
Delphi are around 20 MB and people can keep those open at all times too.
Second I use PYQT. But memory use still big.
But but but when I minimize the windows to taskbar, a fantasy
something
happened. memory use very very low when windows minimize.
So I test it in wxPython. It's same as pyqt. Before I minimize windows
to tray, and hide main windows. This way I just minimize to
taskbar,don't
hide to tray. memory use very low.
Happens with all apps on Windows: if you minimize them, the memory use
in the task manager drops.
I don't know how to program wxpython software can hide to tray and get
lower memory use.although current computer's memory very big.


You should look into wxTaskBarIcon. wxPy questions are probably best
asked on the wxPython list.

--
Yours,

Andrei

=====
Mail address in header catches spam. Real contact info (decode with rot13):
ce******@bcrenz nvy.pbz. Fcnz-serr! Cyrnfr qb abg hfr va choyvp cbfgf. V
ernq gur yvfg, fb gurer'f ab arrq gb PP.

Jul 18 '05 #2
Hi,

you cannot reduce the memory consumption of a program by minimizing it
to the taskbar (at least not in general).

When you are interested in the memory usage of your program, don't get
fooled by the Windows Task Manager. The column "Mem Usage" displays the
current amount of *physical* memory used by each thread. It drops
because Windows does swap out memory pages of background applications
(i. e. minimized) more aggressively than for the foreground application
(this among other optimizations is known as "foreground application
boost" and can even be configured).

To get an idea of how many memory your application really uses
(including currently swapped out pages) see the column "VM Size". "Peak
Mem Usage" is also sometimes interesting to monitor.

These one will not change when you minimize your application to the tray
or taskbar.

You can select the columns from the Menu "View->Select Columns..." in
the menu (it is only available when you are at the "Processes" tab).
If you need something *really* small in terms of memory footprint, you'd
better of having the GUI as a separate application that you only start
when you need it and which then communicates with the service running
invisible (or in a "DOS" window).

However, I think the figures you mention need not really concern you if
you want your application be run on current PC hardware.

hth
Werner

ulysses wrote:
hi,

I'm working in python 5 months. I think it's very cool language.
I do a p2p python program GUI.
First I make a software by wxpython. But I find wxpython use many many
memory.
Second I use PYQT. But memory use still big.
But but but when I minimize the windows to taskbar, a fantasy
something
happened. memory use very very low when windows minimize.

So I test it in wxPython. It's same as pyqt. Before I minimize windows
to tray, and hide main windows. This way I just minimize to
taskbar,don't
hide to tray. memory use very low.

I don't know how to program wxpython software can hide to tray and get
lower memory use.although current computer's memory very big.

Ulysses


Jul 18 '05 #3
hi, Mr.Werner Schiendl

You are right. When I start my program ,it's use 10MB memory. then
I minimize it to taskbar, memory use is 3MB. But I notice total memory
usage did't reduce anymore. I shutdown my program I notice the total
memory really reduce.

OMG. I fooled by windows task manager. You are really smart guy.
I'm a windows programmer before (delphi,vb,vfp MIS).
I never know it . How can I find more information for windows memeroy .
which book your recommended.tha nks.

Ulysses

Werner Schiendl <n1************ *******@neverbo x.com> wrote in message news:<3f******* *@brateggebdc5. br-automation.co.a t>...
Hi,

you cannot reduce the memory consumption of a program by minimizing it
to the taskbar (at least not in general).

When you are interested in the memory usage of your program, don't get
fooled by the Windows Task Manager. The column "Mem Usage" displays the
current amount of *physical* memory used by each thread. It drops
because Windows does swap out memory pages of background applications
(i. e. minimized) more aggressively than for the foreground application
(this among other optimizations is known as "foreground application
boost" and can even be configured).

To get an idea of how many memory your application really uses
(including currently swapped out pages) see the column "VM Size". "Peak
Mem Usage" is also sometimes interesting to monitor.

These one will not change when you minimize your application to the tray
or taskbar.

You can select the columns from the Menu "View->Select Columns..." in
the menu (it is only available when you are at the "Processes" tab).
If you need something *really* small in terms of memory footprint, you'd
better of having the GUI as a separate application that you only start
when you need it and which then communicates with the service running
invisible (or in a "DOS" window).

However, I think the figures you mention need not really concern you if
you want your application be run on current PC hardware.

hth
Werner

ulysses wrote:
hi,

I'm working in python 5 months. I think it's very cool language.
I do a p2p python program GUI.
First I make a software by wxpython. But I find wxpython use many many
memory.
Second I use PYQT. But memory use still big.
But but but when I minimize the windows to taskbar, a fantasy
something
happened. memory use very very low when windows minimize.

So I test it in wxPython. It's same as pyqt. Before I minimize windows
to tray, and hide main windows. This way I just minimize to
taskbar,don't
hide to tray. memory use very low.

I don't know how to program wxpython software can hide to tray and get
lower memory use.although current computer's memory very big.

Ulysses

Jul 18 '05 #4
Hi

ulysses wrote:
-- snip --
OMG. I fooled by windows task manager. You are really smart guy.
I'm a windows programmer before (delphi,vb,vfp MIS).
I never know it . How can I find more information for windows memeroy .
which book your recommended.tha nks.

Ulysses


Unfortunately I have no good book recommendations handy :-(

I'd recommend you try this question on a Win32 specific group.
regards

Werner

Jul 18 '05 #5

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

Similar topics

17
3987
by: los | last post by:
Hi, I'm trying to create a program similar to that of Google's desktop that will crawl through the hard drive and index files. I have written the program and as of now I just put the thread to sleep for 1 second after indexing a couple of files. I'm wondering if anyone knows of a way that I could make so that the program will run at...
4
5727
by: KB | last post by:
Hi, I want to write a Python script that controls and automates a Windows GUI computation program. My problem is that I do not know how to quit the Windows GUI program gracefully with a command (program's or Python) in Cygwin. 'kill' or CTRL-C command in Cygwin does not finish it gracefully, meaning that some outputs do not come out...
3
1887
by: m.errami | last post by:
Hello all I have a small application for which I would like to write an update manager. I assume that the basics of it is to compare versions of the user's current application and a new one store in a new file on a particular URL. Now is there any standard way to do that. I am sure I can figure out something. But instead of designing...
2
3264
by: Ken Williams | last post by:
In general the program is GUI based. However sometimes I would like to wirte some text lines to Console as if it is a Console program. When I write a System.ConsoleWriteLine() statement this is accepted without error (during build and runtime). Unfortunately no Cosole pops up at runtime and showing the text. I assume I have to enable...
1
2320
by: Jim Langston | last post by:
Windows. Situation: Using a Python program called OpenRPG. I have a program that displays form data (a character sheet) in C++. I am able in the C++ program to build a string and copy it into the clipboard, then paste it into the input in the running Python program. I would like to somehow automate this, that is, have the python instance...
3
1175
by: marc | last post by:
Hi why I can call an .py GUI (wxpython) from a program and control it? I'm newbie in python.
8
3272
by: karthikbalaguru | last post by:
Hi, One of my python program needs tkinter to be installed to run successfully. I am using Redhat 9.0 and hence tried installing by copying the tkinter-2.2.2-36.i386.rpm alone from the CD 3 to my pc. But, it is not getting installed and is failing by throwing the below errors. Should i need to configure / install any specific files for...
1
2010
by: =?ISO-8859-1?Q?Andr=E9?= | last post by:
Hi everyone, I'd be interested in hearing suggestions as to the "best" way to drive a Python program step by step from another application. Details: --------- I have implemented a "Robot" that can be programmed by a user to perform certain actions. (see Reeborg below for a simple javascript-
8
1968
by: akineko | last post by:
Hello everyone, This may not be a Python specific challenge. I have a GUI program written in Python + Tkinter. It works very well. Now, I would like to start it from a shell script. As my GUI program includes a server, it should not have more than one instance. Is there any easy way to check if another instance of the program is
0
8184
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8195
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6581
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5701
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5375
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3845
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2334
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1434
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1158
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.