From: Bo G. <bo...@sy...> - 2005-06-06 15:18:24
|
I doubt there is an easy way, not in wxPython. Which brings up an interesting question. I have been wondering whether sufficient conditions could exist to migrate 'value-added' widgets like this from sample code to core Pythoncard. This multi-button dialog is a good example. I expect code like this would normally be distro-ed as sample code, but why not make it a core component (or, I suppose more precisely, a core dialog wrapper)? Is there a policy against incorporating freestyle components and dialogs into core PCard? Just curious. Bo Alex Tweedly wrote: > Thanks Benjamin - but I'm looking for a way that allows me an > arbitrary number of buttons, with labels I choose. > I want to be able to write in code something like: > > result = multiButtonDialog.multiButtonDialog(self, \ > 'Dad, can I go to the movies tonight', \ > ['Yes', 'No', 'Maybe', 'Ask me later', 'Ask your mum'], \ > "Movies Dialog Title") > > I think it does; but I want any number of buttons - not just 3 :-) > > It's starting to sound like there is no existing easy way, so I'll > clean up my code and post it somewhere useful. > And maybe start canvassing Kevin to allow such "utility" functions to > be included in PythonCard ... > |