Re: PyGTK + Glade = weird problem

2006-02-24 Thread gsteff
We'd need to see your scc.glade file to be sure, but basically, calling the show method on the w_cadcli object only shows it, not the objects it contains. Again, to be clear, showing a container object doesn't automatically show the objects it contains. In glade, use the common tab of the

Re: PyGTK + Glade = weird problem

2006-02-24 Thread gsteff
Oops- I didn't read your question carefully enough. That's probably not the problem. Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGTK + Glade = weird problem

2006-02-24 Thread gsteff
Sorry about that. Your problem is that the show_hide_janela method is setup to be called both on a gtk signal (destroy) and an event(delete_event). Callback methods for events take a slightly different signature than signals; they take one extra argument, which represents the triggering event.

What is unique about Python?

2005-12-19 Thread gsteff
I'm a computer science student, and have recently been trying to convince the professor who teaches the programming language design course to consider mentioning scripting languages in the future. Along those lines, I've been trying to think of features of Python, and scripting languages in

Re: How to get started in GUI Programming?

2005-11-25 Thread gsteff
I learned pygtk via the tutorial and reference manual, and found most things to be pleasantly simple to do. A message dialog, for example, can be done via dialog = gtk.MessageDialog(buttons=gtk.BUTTONS_OK_CANCEL, message_format=Test message here.) response = dialog.run() All that can be found

Re: What do you use as symbols for Python ?

2005-11-11 Thread gsteff
I've seen the following style in some code (the formencode library comes to mind): opened = object() closed = object() error = object() Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Python gui

2005-11-06 Thread gsteff
PyGTK is just easier to code with. The api is much nicer. However, yeah, the windows/mac appearance probably does make it a non-starter, unfortunately. As near as I can tell, the solution that currently has the most momentum is to just integrate the cheeseshop more tightly into python, so that

ANN: formulaic 0.1

2005-10-22 Thread gsteff
I've been working on a form generation toolkit that integrates well with FormEncode... its still under heavy development, of course, but I've seen a lot of discussion of this topic on various mailing lists over the past few days, and so wanted to get something out. Release early and all that. So

Re: Execute C code through Python

2005-10-20 Thread gsteff
import subprocess subprocess.call(cmd) -- http://mail.python.org/mailman/listinfo/python-list

Re: UI toolkits for Python

2005-10-13 Thread gsteff
I've used wxpython and pygtk, and have a strong preference for pygtk. wxpython has some advantages: it has better OSX support (widgets look native, and it doesn't require the installation of the Fink x server), and better win32 support (a few gtk widgets, such as menus, don't look quite native on

Re: UI toolkits for Python

2005-10-13 Thread gsteff
Er, meant to say In addition GTK itself is in the top tier of free software projects -- http://mail.python.org/mailman/listinfo/python-list

Re: line

2005-10-10 Thread gsteff
Why do you want to know? This list isn't a tool to get others to do your homework. Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread gsteff
I'm a CS student, and I've been following this thread with great interest, because we've been discussing the virtues of private visibility (information hiding) in one of my courses recently. Does anyone know of academic papers that make the case against private in languages? Greg --

Re: Looking for a database. Sugestions?

2005-09-15 Thread gsteff
SQLite rocks, its definitely the way to go. Its binary is around 250K, but it supports more of the SQL standard than MySQL. It CAN be thread safe, but you have to compile it with a threadsafe macro enabled.. check out www.sqlite.org for more info. The windows binaries apparently are compiled

Re: Process monitoring

2005-05-29 Thread gsteff
Thanks- subprocess was exactly what I needed. For anyone else that reads this, I just launched a new subprocess via subprocess.Popen, did what I needed to do in a while look, while calling the poll method of the Popen object to check whether it was finished, and if so, what its error code was.

Process monitoring

2005-05-19 Thread gsteff
Hey, I'm working on a Python program that will launch some other non-Python process using os.spawn (in the os.P_NOWAIT mode) and then basically wait for it to finish (while doing some other stuff in the interim). Normally, the new process will signal that it's done by writing to a file, but I'd

Re: GUI toolkit question

2005-03-15 Thread gsteff
If you may need to port to another language, you'll probably want to use a toolkit that helps you store the interface description seperately from the code. The example I'm most familiar with is libglade for GTK, although I believe Qt and wx have analagous facilities. I don't do 3D stuff myself,