mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-03-16 21:50:07 +01:00
Update config.py
Fix styling
This commit is contained in:
@@ -61,14 +61,13 @@ def run():
|
||||
self->Read(*key, &rv, defaultVal);
|
||||
return rv;
|
||||
""")
|
||||
c.addPyMethod('ReadInt', '(self, key, defaultVal=0)',
|
||||
body="""\
|
||||
import six
|
||||
rv = self.__cpp_ReadInt(key, defaultVal)
|
||||
if six.PY2:
|
||||
rv = int(rv)
|
||||
return rv
|
||||
""")
|
||||
c.addPyMethod('ReadInt', '(self, key, defaultVal=0)', body="""\
|
||||
import six
|
||||
rv = self.__cpp_ReadInt(key, defaultVal)
|
||||
if six.PY2:
|
||||
rv = int(rv)
|
||||
return rv
|
||||
""")
|
||||
|
||||
c.addCppMethod('double', 'ReadFloat', '(const wxString& key, double defaultVal=0.0)', """\
|
||||
double rv;
|
||||
|
||||
Reference in New Issue
Block a user