I’m specifically looking at the wx.Config (as talked about at http://wxpython.org/Phoenix/docs/html/ConfigBase.html) and wx.FileConfig (http://wxpython.org/Phoenix/docs/html/FileConfig.html)
I was trying to use the SetUmask() method of wx.FileConfig, and was constantly being told it wasn’t there.
After digging around through the source code, I’m not sure if this is actually exposed. SetUmask doesn’t seem to show up and trying to use it on a wx.FileConfig object fails:
config = wx.FileConfig(“myApp”)
type(config)
<class ‘wx._misc.FileConfig’>
dir(config)
[‘AppName’, ‘Create’, ‘DeleteAll’, ‘DeleteEntry’, ‘DeleteGroup’, ‘DontCreateOnDemand’, ‘EntryType’, ‘Exists’, ‘ExpandEnvVars’, ‘FirstEntry’, ‘FirstGroup’, ‘Flush’, ‘Get’, ‘GetAppName’, ‘GetEntryType’, ‘GetFirstEntry’, ‘GetFirstGroup’, ‘GetGlobalFileName’, ‘GetLocalFileName’, ‘GetNextEntry’, ‘GetNextGroup’, ‘GetNumberOfEntries’, ‘GetNumberOfGroups’, ‘GetPath’, ‘GetStyle’, ‘GetVendorName’, ‘HasEntry’, ‘HasGroup’, ‘IsExpandingEnvVars’, ‘IsRecordingDefaults’, ‘NextEntry’, ‘NextGroup’, ‘NumberOfEntries’, ‘NumberOfGroups’, ‘Path’, ‘Read’, ‘ReadBool’, ‘ReadFloat’, ‘ReadInt’, ‘RenameEntry’, ‘RenameGroup’, ‘Set’, ‘SetAppName’, ‘SetExpandEnvVars’, ‘SetPath’, ‘SetRecordDefaults’, ‘SetStyle’, ‘SetVendorName’, ‘Style’, ‘Type_Boolean’, ‘Type_Float’, ‘Type_Integer’, ‘Type_String’, ‘Type_Unknown’, ‘VendorName’, ‘Write’, ‘WriteBool’, ‘WriteFloat’, ‘WriteInt’, ‘class’, ‘del’, ‘delattr’, ‘dict’, ‘doc’, ‘format’, ‘getattribute’, ‘hash’, ‘init’, ‘module’, ‘new’, ‘reduce’, ‘reduce_ex’, ‘repr’, ‘setattr’, ‘sizeof’, ‘str’, ‘subclasshook’, ‘swig_destroy’, ‘weakref’, ‘this’, ‘thisown’]
config.SetUmask(0)
Traceback (most recent call last):
File “”, line 1, in
AttributeError: ‘FileConfig’ object has no attribute ‘SetUmask’
The Python source code doesn’t have any reference to this method, but it is present in the C headers “wxPython-src-3.0.2.0/interface/wx/fileconf.h”
So right now it’s looking like this is something available in wxWidgets but is not ported over/exposed to wxPython, even though the wxPython docs have it documented as an available method.
Is that possible, or am I missing something?