Alex,
Thanks for you comments. I had looked briefly at PythonCard before and now
Dabo following your link. Unfortunately I appear not to meet either of their
minimum specifications for wxPython.
Dabo needs wxPython 2.6.1.1 or higher.
PythonCard needs wxPython 2.5.2.8 or higher.
I am using Python to support a CAD/CAM system, and this unfortunately forces
me to stick with Python 2.3.3 and wxPython 2.4.2.4.
Regarding generic titles. I much prefer them, the simpler the better is my
motto. But I do agree that it does cost little to add a specific title, and
if wanted can be given as the 2nd parameter to the call, Warning("Message",
"Title"). I have already incorporated you suggestion on default Yes or No
buttons, thanks I had not really considered this before.
Thanks again,
Robert
ยทยทยท
-----Original Message-----
From: Alex Tweedly [mailto:alex@tweedly.net]
Sent: Wednesday, April 19, 2006 2:21 AM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Simple message dialog GUIRobert Adams wrote:
>Joe/Robin,
>
>Thanks for both your replies, I guess I could not see the
wood for the
>trees before. Anyway, I guess "wx.MessageBox" more than
provides what I
>am after here, but I am still surprised that a module called
wxEasyGui
>or similar does not already exist. Perhaps it's just too low
level for
>the applications you big guns are working with, but with me, it's
>usually small, quick and dirty programs needed in a hurry.
>
>
>
For small, quick and simple UIs, you might want to try either Dabo (
www.dabodev.com ) or PythonCard ( www.pythoncard.org )I don't think either has these specific cases quite as simple
as you do
here, but in general they make simple UI development faster
and easier
than wx direct.>If you see anything drastic with the above please comment.
>
>
>
Neither is drastic, but two comments:You don't allow a way to specify whether the default is Yes or No.
I personally dislike generic titles on dialogs, I think they should
always be specific to the current message. If the programmer
has gone to
the effort of typing in that two line warning message, how
much does it
cost him to also type 'title="Deletion"' (assuming your
Warning code
would be something likedef Warning(Message="", Title="Generic"):
"""A simple warning message, includes Yes/No buttons"""
buttonAct = wx.MessageBox(Message, Title+" warning
message", wx.YES_NO | wx.ICON_WARNING)
return buttonAct(I'd actually not supply a default for title to make sure I
supplied a
real, useful title--
Alex Tweedly http://www.tweedly.net
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.4/318 - Release
Date: 18/04/2006---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org