Message
All,
I am new to wxPython so please bear with me for asking perhaps dumb questions…
At present I only need simple message box type dialogs and assumed these would be readily available, but after several hours searching the web… it seems not ?
I did find a module called easygui.py, and this is almost perfect… well except it does not look like windows, but it’s close.
From what I have found thus far, it does seem there is not much to it, though to be honest I still don’t fully understand what everything does. But at this point I don’t need to know, so that’s OK.
···
this works
from wxPython.wx import *
application = wxPySimpleApp() # Why is this needed ?
def Info(Message="", Title=“Information”):
“”“A simple information message”""
dlg = wxMessageDialog(None, Message, Title,
wxOK | wxICON_INFORMATION
)
dlg.ShowModal()
dlg.Destroy() # This appears NOT to be needed ?
function test
Info(“Look, matey, I know a dead parrot when I see one…”)
So I could develop a small module with the needed functions pretty quickly. But I ask myself, am I reinventing the wheel, someone out there must have “Been there, done that”. Have I just been looking in the wrong places or does such a module or class really not exist ?
Thanks,
Robert