Does anybody have an exemple how to use wxConfigBase ? I'm trying to use
GetxxxEntry(), but it does not work:
config = wxConfigBase("pydias")
configEntries = []
flag, entry, index = config.GetFirstEntry()
while (flag):
configEntries.append(entry)
flag, entry, index = config.GetNextEntry()
for entry in configEntries:
print entry
I got:
TypeError: Type error in argument 1 of wxConfigBase_GetFirstEntry.
Expected _wxConfigBase_p
Frederic,
According to the DOCS, GetFirstEntry, is typed as:
GetFirstEntry(String, Int)..
You are not passing any parameters.. The parameters also don't show as optional.
Have you tried to pass in the Parameters to see if it give you a different result?
Dave
···
At 01:17 PM 10/20/03, you wrote:
Hello,
Does anybody have an exemple how to use wxConfigBase ? I'm trying to use
GetxxxEntry(), but it does not work:
config = wxConfigBase("pydias")
configEntries =
flag, entry, index = config.GetFirstEntry()
while (flag):
configEntries.append(entry)
flag, entry, index = config.GetNextEntry()
for entry in configEntries:
print entry
I got:
TypeError: Type error in argument 1 of wxConfigBase_GetFirstEntry.
Expected _wxConfigBase_p
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
Does anybody have an exemple how to use wxConfigBase ? I'm trying to use GetxxxEntry(), but it does not work:
config = wxConfigBase("pydias")
IIRC, you don't want to use wxConfigBase, you want to use wxConfig. wxConfigBase is an abstract base class from which several different config classes are derived. The most appropriate of those classes for your system will be defined as wxConfig -- this will use hidden files in ~ under *nix, or the registry under Windows.
Jeff Shannon
Technician/Programmer
Credit International
According to the DOCS, GetFirstEntry, is typed as:
GetFirstEntry(String, Int)..
You are not passing any parameters.. The parameters also don't
show as optional.
wxPython note: The wxPython version of this method returns a 3-tuple
consisting of the continue flag, the value string, and the
index for the next call.
So it didn't need arguments.
Have you tried to pass in the Parameters to see if it give you
a different result?
On Monday 20 October 2003 20:38, Jeff Shannon wrote:
IIRC, you don't want to use wxConfigBase, you want to use wxConfig.
wxConfigBase is an abstract base class from which several different
config classes are derived. The most appropriate of those classes for
your system will be defined as wxConfig -- this will use hidden files
in ~ under *nix, or the registry under Windows.