Here is an example of a dialog window:
----------------------
def dialog(args):
win = GtkDialog()
win.set_uposition(50,50)
win.connect("delete_event", self.delete_event)
win.set_title("dialog")
label = GtkLabel('Dialog')
label.set_padding(10, 10)
win.vbox.pack_start(label)
label.show()
button = GtkButton("Ok")
button.connect("clicked", win.hide)
button.set_flags(CAN_DEFAULT)
win.action_area.pack_start(button)
button.grab_default()
button.show()
win.show()
-----------------------
Jeff
James Henstridge wrote:
>
> Another bounced message.
>
> I can't say what the problem is without seeing the problem code though.
>
> James.
>
> --
> Email: [EMAIL PROTECTED]
> WWW: http://www.daa.com.au/~james/
>
> ---------- Forwarded message ----------
> Date: Tue, 13 Jul 1999 11:00:01 +0800 (WST)
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: BOUNCE [EMAIL PROTECTED]: Non-member submission from ["Remi Delon"
><[EMAIL PROTECTED]>]
>
> >From [EMAIL PROTECTED] Tue Jul 13 10:59:59 1999
> Received: from smtp.morpho.com (dns1.morpho.com [134.35.2.1])
> by quoll.daa.com.au (8.9.2/8.9.2) with SMTP id KAA07619
> for <[EMAIL PROTECTED]>; Tue, 13 Jul 1999 10:59:56 +0800 (WST)
> Received: (qmail 27262 invoked from network); 13 Jul 1999 01:06:47 -0000
> Received: from softdnserror (HELO whorl.core.morpho.com) (134.35.14.2)
> by softdnserror with SMTP; 13 Jul 1999 01:06:47 -0000
> Received: from daveff.core.morpho.com (remid.core.morpho.com [134.35.14.82]) by
>whorl.core.morpho.com with SMTP (Microsoft Exchange Internet Mail Service Version
>5.5.2448.0)
> id 3RYFA1JY; Mon, 12 Jul 1999 18:01:10 -0700
> From: "Remi Delon" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: Modal error window
> Date: Mon, 12 Jul 1999 18:01:37 -0700
> Message-ID: <000301becccb$4269a600$[EMAIL PROTECTED]>
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
> X-Priority: 3 (Normal)
> X-MSMail-Priority: Normal
> X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
> Importance: Normal
> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
>
> Hi,
>
> I've been trying for the entire afternoon do do the most basic thing :
> create a basic error window that displays
> a message. I just need a label and an "OK" button and, of course, this
> window has to be modal.
> First of all, it looks like such a window doesn't already exist, so I tried
> to create my own:
>
> I don't know whether it's better to create a window, and then hide it or
> show it when needed (just changing
> the label), or create a window each time I need it and then destroy it. (But
> anyway, I'm having the same
> problem in both cases).
>
> My problem is with the set_modal function. I use set_modal(TRUE), to make
> sure my window is going to be modal.
> It works fine until I click "close" the window (which means, depending on
> the above choice, that I either hide it or destroy it)
> The window disappears, but then, for some reason, every time I click on
> another window of my application,
> the modal window shows up again.
> I tried to use set_modal(FALSE) before I hide the window (or destroy it),
> but I still get the same behavior.
>
> Can anyone help me please.
>
> Remi.
>
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
--
+------------------------------------+
| |
| J.W. Bizzaro |
| [EMAIL PROTECTED] |
| |
| THE OPEN COLLABORATORY |
| FOR MOLECULAR BIOINFORMATICS |
| |
| http://theopenlab.uml.edu/ |
| |
+------------------------------------+
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]