Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Standard Yes / No Windows Dialog box creation

16 views
Skip to first unread message

fla...@wanadoo.fr

unread,
Jun 17, 2006, 6:00:40 PM6/17/06
to
I found a way to create "Open File" or "Open Folder" windows dialog
boxes, but not to create an easier Yes / No dialog box...
Maybe someone has a solution for this?

Claudio Grondi

unread,
Jun 17, 2006, 6:08:07 PM6/17/06
to
Do it just the same way as you did it with the "Open File" or "Open
Folder" windows dialog. What is your problem with it?

Claudio

SuperHik

unread,
Jun 17, 2006, 7:05:08 PM6/17/06
to
Claudio Grondi wrote:
> fla...@wanadoo.fr wrote:
>> I found a way to create "Open File" or "Open Folder" windows dialog
>> boxes, but not to create an easier Yes / No dialog box...
>> Maybe someone has a solution for this?

I've never seen "easier" way to do it, but my solution for you if you
want to create a GUI application without learning any GUI programming
would be to consider Glade, wxGlade and such...


>>
> Do it just the same way as you did it with the "Open File" or "Open
> Folder" windows dialog. What is your problem with it?
>

I think what he means by "create" is somethink like
win32ui.CreateFileDialog() because of the "easier" part.

> Claudio

Ravi Teja

unread,
Jun 17, 2006, 7:19:59 PM6/17/06
to

Assuming you are on MS Windows.
import win32api, win32con
win32api.MessageBox(0, "Question", "Title", win32con.MB_YESNO)

fla...@wanadoo.fr

unread,
Jun 18, 2006, 5:01:29 AM6/18/06
to

SuperHik a écrit :

> I've never seen "easier" way to do it, but my solution for you if you
> want to create a GUI application without learning any GUI programming
> would be to consider Glade, wxGlade and such...

Yes I wanted something easy because it's the first time that I use a
Gui into Python and I don't wanted to learn the complete Windows GUI
programming just to display a Yes / No dialog box...

> >>
> > Do it just the same way as you did it with the "Open File" or "Open
> > Folder" windows dialog. What is your problem with it?
> >
> I think what he means by "create" is somethink like
> win32ui.CreateFileDialog() because of the "easier" part.

Yes I wanted something like win32ui.CreateFileDialog() to create my
dialog box. Unfortunately, win32ui.CreateDialog() is not so easy...

fla...@wanadoo.fr

unread,
Jun 18, 2006, 5:03:14 AM6/18/06
to
Ravi Teja a écrit :

>
> Assuming you are on MS Windows.
> import win32api, win32con
> win32api.MessageBox(0, "Question", "Title", win32con.MB_YESNO)

Yes, that's exactly what I was looking for! Thanks!!

Kent Johnson

unread,
Jun 21, 2006, 9:42:14 PM6/21/06
to

Maybe you would like EasyGui
http://www.ferg.org/easygui/

Kent

0 new messages