What I would like to do is have a button that when pressed pops up a
gtk.Menu similar to how the MenuToolButton works. However I would like
the actual button to popup the menu, not the arrow, which I would like to
not exist. Hence my reason for not using MenuToolButton in the first
place.
I ass
I'm attaching some code from qa-assistant that I believe implements the
behaviour you're asking for. Here's a summary:
- Create a dialog
- Loop until your dialog is filled out correctly
+ response = dialog.run() # Get input to your dialog
+ Check that all exit conditions are satisfied
* I
On 6/2/05, dimitri pater <[EMAIL PROTECTED]> wrote something like:
> try: assert name != ""
> except AssertionError:
I'd like to put forth a caution on the use of asserts for program
logic. If you run python with -O, the asserts are compiled out:
% echo "assert False"
dimitri pater wrote:
mmh, this doesn't sound very "elegant", but if it works: don't break it.
Maybe someone comes up with a better solution.
It's not and It doesn';t work, I forgot to run the app in a terminal to
see any output and there was an errors, once I fixed the error, this
closed bot
mmh, this doesn't sound very "elegant", but if it works: don't break it.
Maybe someone comes up with a better solution. I'm pretty new to PyGtk myself to be honest.
greetz,
DimitriOn 6/3/05, Mark Cooke <[EMAIL PROTECTED]> wrote:
The way I have got it to work(and this is probaly completely wrong an
The way I have got it to work
(and this is probaly completely wrong and bad practice, as there should
only be ONE gtk.main() per application), is to rather than use
gtkDialog, create a new gtk.main() & new GtkWindow with all my fields in
and when they click 'OK', validate the fields, and once t
dimitri pater wrote:
Hello,
I am not sure if this helps, but this is how I check missing fields
(before submitting data to a database) using a gtkDialog:
Kind of, I probably never made myself clear, checking the data if fine,
but I still have the dilemma, of if they have missed some fields o
Thanks to you all, this is another example how open source
software works. We tend to take it for granted now, but
actually... it is amazing!
thanks,
DimitriOn 6/3/05, John Hunter <[EMAIL PROTECTED]> wrote:
> "Steve" == Steve Chaplin <[EMAIL PROTECTED]> writes:Steve> I updated backend_gtk
Hello,
I am not sure if this helps, but this is how I check missing fields (before submitting data to a database) using a gtkDialog:
def submitDB(self, widget):
while True:
try:
name = self.wTree.get_widget("entry1").get_text()
age = self
> "Steve" == Steve Chaplin <[EMAIL PROTECTED]> writes:
Steve> I updated backend_gtk.py in cvs to remove the DBL_BUFFER
Steve> code - it was just an experimental feature and I do not
Steve> think anyone had a use for it, and it was confusing the
Steve> rest of the code. I added
Hi,
Sorry if this may sound like a simple question, but I've just started
learning gtk/pygtk and still pretty sketchy.
I have a very small/basic app built using Glade, that has a gtk.Dialog
popup window (from a menu toolbar) that allows a user to enter some
details in a few text fields.
I'
I then click on the 'graph' Tab and the 'make graph!' button and get:Traceback (most recent call last):
File "testMPL-GTK.py", line 55, in createProjectGraphp1 = self.axis.bar(ind, int(age), width, color='r')ValueError: invalid literal for int():
You should enter two values before creating t
12 matches
Mail list logo