Hi all,
I'm a recent, belated convert from Perl. I work in a physics lab and
have been using Python to automate a lot of measurement equipment
lately. It works fabulously for this purpose. Recently I've wanted to
start writing GUIs for some of my programs, for data visualization and
to make the programs easier to use for some of my co-workers.
So far I've experimented with two Python GUI toolkits: Tkinter and
PyGTK. I've had some issues with each:
* PyGTK - not very "pythonic", in my opinion. Have to use get_ and
set_ methods rather than properties. Have to write ugly things like
textview.insert(textview.get_end_iter(), ...) to append text to a text
buffer. No useful doc strings, which makes experimenting with new
widgets in IPython a huge pain. The toolkit feels very "heavyweight".
I don't want to write an XML file and an "action group" just to make a
piddly little menubar with 10 items.
I'm an avid Gnome fan, and love the professionalness and completeness
of GTK, but PyGTK seems frustratingly C-like compared to the
wonderfully designed high-level abstractions I've come to love in
Python!
* TkInter - Seems easy to learn, and better for quick "lightweight"
GUIs. I wrote a complete working instrument GUI in less than a day of
figuring things out. Not very Pythonic in terms of creating and
modifying widgets. No factory functions to quickly create menu items.
My biggest problem with Tkinter is that it is very unreliable under
Cygwin: programs freeze and slow intermittently and the tkMessageDialog
stock dialog boxes show no visible text.
So, is there another toolkit I should be looking at? Having something
that can run easily on Cygwin and native Windows is a priority so that
I can quickly move programs to new measurement computers. I like GTK a
lot and Tk is growing on me too.. are there any higher-level "wrapper"
toolkits for GTK and Tk?
Thanks for any advice!
Dan Lenski
University of Maryland
Nov 8 '06
161 5296
Stephen Eilert a écrit :
Well, I *hate* underscores with a passion. So it is kinda frustrating
that I *have* to say "__init__". The fact that the coding conventions
for Python suggest things such as methods_called_this_or_that do not
help. Everything else seems fine, since if there's voodoo involved, it
had best be sticking out from the text in big, bloody, blinking, red
letters.
I know, there's noone preventing me from doing otherwise (except for
that blasted __init__). I'd like to follow the pack here, tho.
I'm sure a carefully crafted metaclass can be used to automaticaly
convert any init function to __init__ ;)
On Wed, 15 Nov 2006 08:22:46 +0000, Antoon Pardon wrote:
>Redundancy is not something to be valued for its own sake. It is only valuable when it actually gains you something.
In the same way it is not something to be eliminated for its own
sake.
On the contrary, redundancy implies more work somewhere: e.g. more work
for the parser, more effort needed by the python-dev crew, bigger
binaries, larger code bases, more complex test suites, slower development,
longer downloads. Whatever the nature of the redundant thing, there will
be a cost to it. If that cost isn't outweighed by some advantage it should
be eliminated merely because it is redundant and therefore a cost we could
do without.
I suppose, theoretically, if you could find some cost-free redundancy,
something that just happened for free, we would have no reason to care
whether it existed or not. But since cost-free redundancies don't exist,
or at least are very rare, we should prefer to remove redundancies UNLESS
they offer some advantage.
--
Steven.
On 2006-11-15, Steven D'Aprano <st***@REMOVE.THIS.cybersource.com.auwrote:
On Wed, 15 Nov 2006 08:22:46 +0000, Antoon Pardon wrote:
>>Redundancy is not something to be valued for its own sake. It is only valuable when it actually gains you something.
In the same way it is not something to be eliminated for its own sake.
On the contrary, redundancy implies more work somewhere: e.g. more work
for the parser, more effort needed by the python-dev crew, bigger
binaries, larger code bases, more complex test suites, slower development,
longer downloads. Whatever the nature of the redundant thing, there will
be a cost to it. If that cost isn't outweighed by some advantage it should
be eliminated merely because it is redundant and therefore a cost we could
do without.
It you want to put it in those terms fine. It doesn't change the fact
that when someone doesn't like some proposal that happens to introduce
redundancy here in c.l.p, there is a reasonable chance that the proposal
will be dismissed with the simple observation that it introduces redundancy
without further reference to possible costs or benefits of the specific
redundancy.
IME there is a lot of redundancy that has benefits. So there is no
reason to dismiss a proposal simply on the grounds that it introduces
some redundancy. Something that seems to happen a lot here.
--
Antoon Pardon
John Salerno wrote:
personally, i don't mind the colon and see no need to lose it, but if we
are talking in the realm of aesthetics, it actually seems like it would
be cleaner if it weren't there...sure, at first everyone who is used to
it might feel like something is missing, or the line is "hanging" open,
but overall the less characters, the better, right? isn't that why the
braces are gone?
Which is the better writing style for text intended for human readers?
I have some things to say:
Seagulls belong in the sky.
Colon fits in the text.
I have some things to say
{
Seagulls belong in the text.
Colon fits in the belly.
}
Magnus Lycka wrote:
Which is the better writing style for text intended for human readers?
I have some things to say:
Seagulls belong in the sky.
Colon fits in the text.
I have some things to say
{
Seagulls belong in the text.
Colon fits in the belly.
}
have anyone counted the number of colons used in this way by the OP,
in his first few posts ? (if there isn't a name for the law that
states that the number for a "let's remove the colons" proposal is
always greater than zero, someone should come up with one...)
</F>
Fredrik Lundh wrote:
Magnus Lycka wrote:
>Which is the better writing style for text intended for human readers?
I have some things to say: Seagulls belong in the sky. Colon fits in the text.
I have some things to say { Seagulls belong in the text. Colon fits in the belly. }
have anyone counted the number of colons used in this way by the OP,
in his first few posts ? (if there isn't a name for the law that
states that the number for a "let's remove the colons" proposal is
always greater than zero, someone should come up with one...)
I'm always surprised by the amount of energy that's put into this type
of discussion - even the OP has suggested that this isn't a big issue.
If it's not a big issue why is this thread still going? Every language
has a syntax. Why not just accept it as a given and get on with more
productive activities?
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
Steve Holden wrote:
I'm always surprised by the amount of energy that's put into this type
of discussion - even the OP has suggested that this isn't a big issue.
If it's not a big issue why is this thread still going?
http://www.bikeshed.org/
</F>
Fredrik Lundh wrote:
Steve Holden wrote:
>I'm always surprised by the amount of energy that's put into this type of discussion - even the OP has suggested that this isn't a big issue. If it's not a big issue why is this thread still going?
http://www.bikeshed.org/
I deliberately avoided using that analogy, but I'm sorry to say it
*does* apply. I'd hate to see c.l.py descend to becoming a wibble group.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
Steve Holden wrote:
y is this thread still going?
>http://www.bikeshed.org/
I deliberately avoided using that analogy, but I'm sorry to say it
*does* apply. I'd hate to see c.l.py descend to becoming a wibble group.
I switched to a reader that lets me kill threads with a single keypress
a long time ago. which makes me wonder why I saw Magnus post and your
followup. wait a second...
On 2006-11-16, Steve Holden <st***@holdenweb.comwrote:
I'm always surprised by the amount of energy that's put into
this type of discussion - even the OP has suggested that this
isn't a big issue. If it's not a big issue why is this thread
still going? Every language has a syntax. Why not just accept
it as a given and get on with more productive activities?
That's all very well if the language has a compromised and ad-hoc
syntax. But since Python has a nice clean syntax, it makes me
want to be associated with it by investing in its discussions. ;-)
--
Neil Cerutti
Steve Holden wrote:
I'm always surprised by the amount of energy that's put into this type
of discussion - even the OP has suggested that this isn't a big issue.
If it's not a big issue why is this thread still going? Every language
has a syntax. Why not just accept it as a given and get on with more
productive activities?
It's because it's not an issue with an obviously (clear to everyone) good or bad
answer.
Obvious bad answer - short discussion
Obvious good answer - short discussion which spawns many long discussion
about the not so obviously details.
* Nearly a toss up -really long discussion that rehashes things over and
over from various micro points of view.
Even though it's pretty much known this won't change, people still want the
clarity of an obvious answer even if an obvious solution doe not exist, so the
thread continues. And of course what is obvious or not isn't obvious to
everyone, so that too is a long discussion. ;-)
But I think this thread has a second underlying attribute that appeals to the
participants. It isn't so much an effort to change anything as it is an effort
to explore and understand why things where made the way they are. To those who
already know, this seems silly, but to those who are still learning, it seems
important.
This could be broken down a bit more, but then we would get into long debates on
the best non-obvious ways to do that. ;-)
Cheers,
Ron
"Fredrik Lundh" <fr*****@pythonware.comwrote:
have anyone counted the number of colons used in this way by the OP,
in his first few posts ? (if there isn't a name for the law that
states that the number for a "let's remove the colons" proposal is
always greater than zero, someone should come up with one...)
You just have - how do you want it to be immortalised?
The effbot's law of colonic inevitability?
- Badger (for Steve) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Greg Scharlemann |
last post by:
I am attempting to upload a picture to a webserver and create a
thumbnail from the picture uploaded. The problem comes in when I
attempt to create an Image object from the File object (which is...
|
by: Martin Bless |
last post by:
The good news:
Along with Python-2.4 comes really good news to Windows users. Yes,
you now CAN build extension modules yourself using the SAME C++
compiler and linker Python is built with...
|
by: Chive Software |
last post by:
Chive Software are pleased to announce a new version of its Apoc PDF
Toolkit, part a of its Apoc suite of products.
Apoc PDF Toolkit is a high quality software component that developers
can add...
|
by: Ney André de Mello Zunino |
last post by:
Hello.
I gladly learned yesterday that Microsoft was making the Visual C++
Toolkit 2003 available for free. Today, I downloaded and installed it
and went on to try building some simple...
|
by: Alex |
last post by:
Hi there
I'm switching from VC++ 6.0 to VC++ .NET 2003. Since there is no stand-alone
version of VC++ .NET 2003 Pro, I went and purchased the Standard version,
which does not have an...
|
by: miffy900 |
last post by:
Will there be a Visual C++ Toolkit 2005?
I really appreciated that there was the Visual C++ 2003 Optimising Compiler
distributed for free in the 2003 Toolkit.
Will Microsoft continue with this...
|
by: Rental |
last post by:
I'm having the sam problem as described below with the Localization
toolkit. Does anyone know if there is a solution to this problem.
--->When attempting to generate resource dlls with...
|
by: krishnakant Mane |
last post by:
hello all.
after finishing a project in record time using python we have taken up
one more project.
this time however, we need to do a gui based project which will run
on windows xp and 2000....
|
by: Anthony Irwin |
last post by:
Hi All,
I am currently trying to decide between using python or java and have
a few quick questions about python that you may be able to help with.
#1 Does python have something like javas...
|
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...
|
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...
|
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...
|
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)...
|
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...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
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: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |