diff options
| author | ormorph <roma251078@mail.ru> | 2024-04-21 23:19:03 +0300 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-04-30 11:10:44 +0900 |
| commit | 3dec37ecf0484f58246046efb26ba0fbbdf3dcd7 (patch) | |
| tree | 3b89d2f711d45c2a4f9189106b97b0042e5228e7 /pytquic3/uic.cpp | |
| parent | 88d14d22d621a11ab063f5810d93c91571922440 (diff) | |
| download | pytqt-3dec37ecf0484f58246046efb26ba0fbbdf3dcd7.tar.gz pytqt-3dec37ecf0484f58246046efb26ba0fbbdf3dcd7.zip | |
Changing string types to bytes for pytquic
For python3 you need to explicitly specify the bytes type, it is different from strings
Signed-off-by: ormorph <roma251078@mail.ru>
(cherry picked from commit ba0616ea87225f3edcc45dc863d0d03419a53450)
Diffstat (limited to 'pytquic3/uic.cpp')
| -rw-r--r-- | pytquic3/uic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pytquic3/uic.cpp b/pytquic3/uic.cpp index d5d89dc..e4a5ad0 100644 --- a/pytquic3/uic.cpp +++ b/pytquic3/uic.cpp @@ -387,9 +387,9 @@ void Uic::createActionImpl( const TQDomElement &n, const TQString &parent ) for ( TQDomElement ae = n; !ae.isNull(); ae = ae.nextSibling().toElement() ) { TQString objName = registerObject( getObjectName( ae ) ); if ( ae.tagName() == "action" ) - out << indent << "self." << objName << " = TQAction(" << parent << ",\"" << objName << "\")" << endl; + out << indent << "self." << objName << " = TQAction(" << parent << ",b\"" << objName << "\")" << endl; else if ( ae.tagName() == "actiongroup" ) - out << indent << "self." << objName << " = TQActionGroup(" << parent << ",\"" << objName << "\")" << endl; + out << indent << "self." << objName << " = TQActionGroup(" << parent << ",b\"" << objName << "\")" << endl; else continue; bool subActionsDone = FALSE; |
