Zbigniew Banach schrieb: > Mathias Bauer napisaĆ(a): > >> The parent is the one you gave to the toolkit when the dialog is >> constructed. In your case it is obviously "None". So it's not surprising >> that you don't find a parent. :-) > > Ah, the marvels of copy-and-paste programming. Duh. Thanks a lot for > pointing this out, Mathias, I'll try specifying a parent (maybe the > Desktop) and see where I go from there :)
I'm not sure if this will help you. If you give the dialog a parent window it will be bound to it - and it will destroyed when the parent is destroyed. Using the system desktop as parent exactly is what you did now - with the result that you don't find a parent in OOo. >> In case you have one dialog for all macros you want to use you should >> consider something like a global variable. That works in Basic, don't >> know about Python. > >>From what I've experienced with Python macros so far it seems that you > can't have a global variable value that is persisted between macro calls > (but maybe someone can prove me wrong). Perhaps you should consider to implement your dialog as a singleton UNO service. This way all clients can ask the service manager for it. Ciao, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[EMAIL PROTECTED]". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]