On Tue, Dec 02, 2003 at 10:29:44AM -0300, Michel Thadeu wrote:
> I want to put the glade xml file in a string inside my program, is
> there a way to load the xml file from this string?
>
> I try to create a tmpfile with os.tmpfile() and then use this file to
> load xml, but I can't get the name of this file...
You should probably be using the tempfile module:
>>> import tempfile
>>> x = tempfile.mktemp()
>>> print x
'/tmp/tmpPRapHG'
I don't see what that wouldn't work with glade.XML.
Related note: os.tempnam is deprecated as a security risk in Python 2.3.
Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/