@@ -1146,7 +1146,7 void PythonQtPrivate::registerCPPClass(const char* typeName, const char* parentT | |||
|
1146 | 1146 | PyObject* PythonQtPrivate::packageByName(const char* name) |
|
1147 | 1147 | { |
|
1148 | 1148 | if (name==NULL || name[0]==0) { |
|
1149 | return _pythonQtModule; | |
|
1149 | name = "private"; | |
|
1150 | 1150 | } |
|
1151 | 1151 | PyObject* v = _packages.value(name); |
|
1152 | 1152 | if (!v) { |
@@ -479,6 +479,9 public: | |||
|
479 | 479 | //! called by virtual overloads when a python return value can not be converted to the required Qt type |
|
480 | 480 | void handleVirtualOverloadReturnError(const char* signature, const PythonQtMethodInfo* methodInfo, PyObject* result); |
|
481 | 481 | |
|
482 | //! get access to the PythonQt module | |
|
483 | PythonQtObjectPtr pythonQtModule() const { return _pythonQtModule; } | |
|
484 | ||
|
482 | 485 | private: |
|
483 | 486 | //! Setup the shared library suffixes by getting them from the "imp" module. |
|
484 | 487 | void setupSharedLibrarySuffixes(); |
General Comments 0
You need to be logged in to leave comments.
Login now