Hi there,
I wrote my first Python program this weekend, Conway's Game of Life,
and I used Tkinter for the graphics. I thought I had done something
wrong when I saw the memory consumption, so I wrote the simplest Tk
program I could, and yep, it takes about 40MB of memory! I'm using Red
Hat Linux 9.0 and recent versions of the software. Please look at the
output below, and tell me if I am confused...
~/python: cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)
~/python: rpmquery python
python-2.2.2-26
~/python: rpmquery tk
tk-8.3.5-88
~/python: rpmquery tkinter
tkinter-2.2.2-26
~/python: cat hello.py
#!/usr/bin/python
import Tkinter as Tk
root = Tk.Tk()
Tk.Button(text='Quit', command=root.quit).pack()
root.mainloop()
~/python: python hello.py &
[1] 25633
~/python: ps u
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
sjm 23897 0.0 0.2 4980 1088 pts/0 S 12:18 0:00 -csh
sjm 25633 4.8 7.2 41576 37352 pts/0 S 22:35 0:00 python
hello.py
sjm 25634 0.0 0.1 2616 660 pts/0 R 22:35 0:00 ps u 2 2129
ServantOfTheSecretFire wrote: wrong when I saw the memory consumption, so I wrote the simplest Tk program I could, and yep, it takes about 40MB of memory! I'm using Red Hat Linux 9.0 and recent versions of the software. Please look at the output below, and tell me if I am confused...
sjm 25633 4.8 7.2 41576 37352 pts/0 S 22:35 0:00 python
Can't say about linux, but on windows your program takes about 5.5MB.
--
--
Every sufficiently advanced magic is indistinguishable from technology
- Arthur C Anticlarke se********************@fea.st (ServantOfTheSecretFire) wrote in message news:<f2**************************@posting.google. com>... Hi there,
I wrote my first Python program this weekend, Conway's Game of Life, and I used Tkinter for the graphics. I thought I had done something wrong when I saw the memory consumption, so I wrote the simplest Tk program I could, and yep, it takes about 40MB of memory! I'm using Red Hat Linux 9.0 and recent versions of the software. Please look at the output below, and tell me if I am confused...
Wow!
~/python: cat /etc/redhat-release Red Hat Linux release 9 (Shrike)
Suse 8.2
~/python: rpmquery python python-2.2.2-26
rpm -qf $(which python)
python-2.2.2-82
~/python: rpmquery tk tk-8.3.5-88
rpm -q tk
tk-8.4.2-27
~/python: rpmquery tkinter tkinter-2.2.2-26
rpm -q python-tk
python-tk-2.2.2-92
~/python: cat hello.py #!/usr/bin/python import Tkinter as Tk root = Tk.Tk() Tk.Button(text='Quit', command=root.quit).pack() root.mainloop()
~/python: python hello.py & [1] 25633
~/python: ps u USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND sjm 23897 0.0 0.2 4980 1088 pts/0 S 12:18 0:00 -csh sjm 25633 4.8 7.2 41576 37352 pts/0 S 22:35 0:00 python hello.py
pac 2947 1.6 2.1 11216 5556 pts/1 S 21:24 0:00 python
sjm 25634 0.0 0.1 2616 660 pts/0 R 22:35 0:00 ps u
I suppose all can suggest is that you do a lsof | grep sjm and spent
some time working out what shared libraries have been pulled in.
Regards, Paul Clinch This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Thomas |
last post by:
I was used to pass Unicode strings to Tk widgets. IIRC, Tcl/Tk
expects UTF-8 encoded strings, but Tkinter took care of that.
This worked, as long as I was using Python/Tk on Red Hat 9 Linux
(and...
|
by: Mickel Grönroos |
last post by:
Hi everybody,
I'm using QuickTimeTcl (3.1) to be able to play movie files in my Tkinter
application (Python 2.3.2) on Windows 2000. I was planning to write a
simple wrapper class,...
|
by: Paul A. Wilson |
last post by:
I'm new to Tkinter programming and am having trouble creating a
reusable button bar... I want to be able to feed my class a dictionary
of button names and function names, which the class will make....
|
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...
|
by: aditya.siram |
last post by:
Hi all,
I recently found the Leo Outliner Tool
(http://webpages.charter.net/edreamleo/front.html)written in Python and
installed it on my Windows PC at work and my Debian and Ubuntu PC's at
home....
|
by: frikk |
last post by:
Hey everyone. I have been working with python for a couple years now,
but just recently built my first program with a GUI. I decided to
start with Tkinter since it is included with the base...
|
by: wolfonenet |
last post by:
Hi All,
My setup is:
WinXP
Python 2.5.1
TKinter version: $Revision: 50704 $
Tcl: 8.4
Debugger: WinPdb
|
by: Kenneth McDonald |
last post by:
Any guesses as to how many people are still using Tkinter? And can
anyone direct me to good, current docs for Tkinter?
Thanks,
Ken
|
by: joshdw4 |
last post by:
I hate to do this, but I've thoroughly exhausted google search. Yes,
it's that pesky root window and I have tried withdraw to no avail. I'm
assuming this is because of the methods I'm using. I...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
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...
|
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,...
|
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...
| |