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
Oops- I didn't read your question carefully enough. That's probably
not the problem.
Greg
--
http://mail.python.org/mailman/listinfo/python-list
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.
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
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
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
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
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
import subprocess
subprocess.call(cmd)
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
--
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
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.
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
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,
17 matches
Mail list logo