I want to make a stand alone gui. Whose work is to get the diff options
from user and run a shell script based on them.
I wanna know which one is better to use Tkinter or PyGTK, in terms of
efficiency and functionality.
I hv read about Tkinter, but it takes too much time to load, is there
a way to make it faster.
Is all gui take more time to load, this is the first time i am making a
gui.
wIll PyGtk be faster.
Is there any other way of making a gui using python
Thanx in advance 8 16722
JyotiC wrote: I want to make a stand alone gui. Whose work is to get the diff options from user and run a shell script based on them.
I wanna know which one is better to use Tkinter or PyGTK, in terms of efficiency and functionality.
I hv read about Tkinter, but it takes too much time to load, is there a way to make it faster. Is all gui take more time to load, this is the first time i am making a gui. wIll PyGtk be faster. Is there any other way of making a gui using python
Thanx in advance
Speed is not the main concern. You won't notice any speed differences
in a small application like that.
Python has many ways of building a GUI. http://wiki.python.org/moin/GuiProgramming
Everyone has their favorite(s). It is impossible to get a good opinion
on this. A GUI toolkit choice can be quite complex since there are many
variables. It is a decision you will have to make yourself.
If your needs are simple (just get a few options and not concerned
about layout details and other functionality), try something along the
lines of http://wiki.woodpecker.org.cn/moin/EasyGuider
"Ravi Teja" <we*********@gm ail.com> writes: Speed is not the main concern. You won't notice any speed differences in a small application like that.
That's wishful thinking--even a totally trivial tkinter program has
noticable startup delay: from Tkinter import * a=Tk()
takes several seconds if the page cache isn't preloaded. I doubt
PyGTK is any faster, though.
Not from here.
A highly unscientific measurement, using execution time from SciTe on
my 3.5 yr old box.
Python startup - 0.272 sec
With your snippet for Tk - 0.402 sec
0.13 sec is trivial in my book.
"Ravi Teja" <we*********@gm ail.com> writes: A highly unscientific measurement, using execution time from SciTe on my 3.5 yr old box.
Python startup - 0.272 sec With your snippet for Tk - 0.402 sec
What OS? Try rebooting the box (to clear cache) and measuring again?
Thanx for the help.
Does all gui's take time to load.
is there a way to dec this time.
JyotiC wrote: Thanx for the help.
Does all gui's take time to load. is there a way to dec this time.
Have you tried loading a Java GUI app through launching the Java
Virtual Machine? That's pretty slow too. And that's a bytecode compiled
medium. Unfortunately most interpreted programming languages like Perl,
Ruby, Python, etc. are pretty slow loading initial GUI environments.
That's the performance penalty that is offset by the benefits and
efficiency of coding in a very high level language. Less than a second
of load time doesn't seem to be too much of a detraction in my book,
however. If you want pure speed you would need to code in a true
compiled programming language such as C (e.g. - GTK GUI toolkit), C++
(e.g. - Qt GUI toolkit), etc. But what fun is that :-)
makes me wonder how useable pygui is now...
I made the mistake of using wxpython a while back... having something
that runs perfectly in windows, and *sorta* works in other platforms
hardly counts as cross platform, imho. And they wonder why tkinter is
shipped with python while wxpython is not...
Personaly, I would just use Tkinter untill a new gui library comes
along that actualy works in platforms people use, not just the one the
dev prefers. Setting up gtk in windows can be a daunting task for
some, though for projects that I know probably won't see the anyone
else's machine, I just use pygtk, for consistency with the rest of my
apps.
I guess this was slightly off topic, but I think its also important to
consider who might be using your apps when picking out a gui to use.
I've had a good experience with Pygtk. I made a small app called
"Protein Think" that monitors a folding@home client. The front end is
extremely simple - basically a notebook with five small pages. It runs
well and was a breeze to create. Looks much better than Tkinter, if
that matters at all to you. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: srijit |
last post by:
Hello,
Any idea - why the following code crashes on my Win 98 machine with
Python 2.3? Everytime I run this code, I have to reboot my machine.
I also have Win32all-157 installed.
from Tkinter import *
class App:
|
by: carljohan.rehn |
last post by:
I would like like to start doing some GUI-programming in Python, but don't
know which library to choose.
Tkinter seems a bit old. Correct me if I am wrong! The layout doesn't look
as nice as for the others.
wxPython seems to be the first-hand choice for people doing W32-programming
(with MFC-experience).
PyGtk seems to be a modern, very clean and nice approach, but with poor
|
by: Marco Terzuoli |
last post by:
Hi,
I use python under linux and would like to create some GUI applications. I
have seen that Python can be used together woth some different graphic
libraries and would like to have a suggestion about which one to use.
I feel like GTK is better documented bud would not like to create programs
which are not fully portable. Moreover, I know you can use wxWindows as
well... I have tried it in my C program and didn't like the way events were...
|
by: BJörn Lindqvist |
last post by:
See: http://www.wxpython.org/quotes.php. especially:
"wxPython is the best and most mature cross-platform GUI toolkit,
given a number of constraints. The only reason wxPython isn't the
standard Python GUI toolkit is that Tkinter was there first." - Guido
van Rossum
Guess, that answers my question, but isn't "Tkinter was there first" a
very bad answer? :) It is kinda ugly too, so I wonder why it can't be
replaced? Or maybe another GUI...
|
by: Michele Simionato |
last post by:
I am in the process of learning pygtk and I would like to port
some custom made Tkinter widgets to pygtk, just an exercise.
For instance I have this code:
.. from Tkinter import *
..
.. class AnimatedLabel(Label):
.. def __init__(self, master, text, width=72, maxspc=16, deltat=100,
**kw):
.. self.text = text
| |
by: Sebastien Aubry |
last post by:
Hello,
I happen to use in my programs a widget based on Tkinter Canvas. It is
Zinc (http://www.tkzinc.org), which allows to draw using transparency,
gradients, translations, rotations, ... using OpenGL.
However, this widget depends on Tkinter, whose look I find oldy, though
I would like to try PyGtk or wxPython.
I would like to know if there is a method for using a Tkinter widget
|
by: Sebastien Aubry |
last post by:
Hello,
I am trying to embed a Tkinter widget (TkZinc, http://www.tkzinc.org)
inside a PyGtk HMI.
A guru gave me this advice: "I think you can do some magic using the XID
of the Tkinter widget's window to produce a GdkWindow"
I wrote this little program, which gets the XID of the Tkinter window
and uses it to create a gtk.gdk.Window.
|
by: Kevin Walzer |
last post by:
I'm a Tcl/Tk developer who has been working, slowly, at learning Python,
in part because Python has better support for certain kinds of
applications that I want to develop than Tcl/Tk does. Naturally, I
thought that I would use Tkinter as the GUI for these programs. However,
in doing research into GUI development techniques, sample code, and
showcase applications, what has struck me is how little sophisticated
GUI development seems to be...
|
by: fabdeb |
last post by:
Hi every one,
I m a sysadmin who want to know how to use python.
I dont know anything about oriented object programation, i only know
bash and a little perl.
I have some simple questions about python.
the first: what is the differences between a function and a classe?
In which case i should use a function ?
In which case i should use a class ?
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |