On Sat, Jun 22, 2002 at 06:14:06PM -0400, Gary Jaffe wrote:
> On Saturday 22 June 2002 04:56 pm, Christian Reis wrote:
> >
> > def run (self):
> > self.win.set_transient_for(self.parent.win)
> > self.show ()
> > gtk.mainloop ()
> > return self.retvalue
> >
> Can, I still use Acct as a stand alone program? If so, in my test code, what
> do I use for the parent window passed as an argument to the
> self.win.set_transient(self.parent.win) call. I tried 'None', but that
> didn't work. Or, is it not feasible to use Acct as a stand alone program?
> (This is not a big priority).
Maybe use an API like:
def run(self, parent):
if parent:
self.set_transient_for(parent)
self.show()
gtk.mainloop()
return self.retvalue
Pass parent=None when running as standalone. I'm sorry, this bit I sent
you was geared towards my classes, which have a "win" property: they
don't inherit directly from GtkWindow. Hopefully, this will work now.
Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/