comparison engine/extensions/filebrowser.py @ 179:28532ae6f9f6

Moved all editor content out of content, as chewie says it's deprecated as hell ;-)
author cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 30 Jan 2009 00:54:07 +0000
parents f55979111ba1
children 51cc05d862f2
comparison
equal deleted inserted replaced
178:7dc59bd3d6b1 179:28532ae6f9f6
10 signature must be fileSelected(path,filename). If selectdir is set, fileSelected's 10 signature must be fileSelected(path,filename). If selectdir is set, fileSelected's
11 filename parameter should be optional. 11 filename parameter should be optional.
12 The savefile option provides a box for supplying a new filename that doesn't exist yet. 12 The savefile option provides a box for supplying a new filename that doesn't exist yet.
13 The selectdir option allows directories to be selected as well as files. 13 The selectdir option allows directories to be selected as well as files.
14 """ 14 """
15 def __init__(self, engine, fileSelected, savefile=False, selectdir=False, extensions=('xml',), guixmlpath="content/gui/filebrowser.xml"): 15 def __init__(self, engine, fileSelected, savefile=False, selectdir=False, extensions=('xml',), guixmlpath="gui/filebrowser.xml"):
16 self.engine = engine 16 self.engine = engine
17 self.fileSelected = fileSelected 17 self.fileSelected = fileSelected
18 18
19 self._widget = None 19 self._widget = None
20 self.savefile = savefile 20 self.savefile = savefile