Connecting Tech Pros Worldwide Forums | Help | Site Map

Standard Yes / No Windows Dialog box creation

flaus.a@wanadoo.fr
Guest
 
Posts: n/a
#1: Jun 17 '06
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
Guest
 
Posts: n/a
#2: Jun 17 '06

re: Standard Yes / No Windows Dialog box creation


flaus.a@wanadoo.fr wrote:[color=blue]
> 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?
>[/color]
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
Guest
 
Posts: n/a
#3: Jun 18 '06

re: Standard Yes / No Windows Dialog box creation


Claudio Grondi wrote:[color=blue]
> flaus.a@wanadoo.fr wrote:[color=green]
>> 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?[/color][/color]

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...[color=blue][color=green]
>>[/color]
> 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?
>[/color]
I think what he means by "create" is somethink like
win32ui.CreateFileDialog() because of the "easier" part.
[color=blue]
> Claudio[/color]
Ravi Teja
Guest
 
Posts: n/a
#4: Jun 18 '06

re: Standard Yes / No Windows Dialog box creation



flaus.a@wanadoo.fr wrote:[color=blue]
> 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?[/color]

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

flaus.a@wanadoo.fr
Guest
 
Posts: n/a
#5: Jun 18 '06

re: Standard Yes / No Windows Dialog box creation



SuperHik a écrit :
[color=blue]
> 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...[/color]

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...
[color=blue][color=green][color=darkred]
> >>[/color]
> > 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?
> >[/color]
> I think what he means by "create" is somethink like
> win32ui.CreateFileDialog() because of the "easier" part.[/color]

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

flaus.a@wanadoo.fr
Guest
 
Posts: n/a
#6: Jun 18 '06

re: Standard Yes / No Windows Dialog box creation


Ravi Teja a écrit :
[color=blue]
>
> Assuming you are on MS Windows.
> import win32api, win32con
> win32api.MessageBox(0, "Question", "Title", win32con.MB_YESNO)[/color]

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

Kent Johnson
Guest
 
Posts: n/a
#7: Jun 22 '06

re: Standard Yes / No Windows Dialog box creation


flaus.a@wanadoo.fr wrote:[color=blue]
> 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?[/color]

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

Kent
Closed Thread