We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7272379 commit 3cdf58dCopy full SHA for 3cdf58d
Source/vcl/WrapVclDialogs.pas
@@ -64,13 +64,13 @@ implementation
64
{ Global Functions }
65
function ShowMessage_Wrapper(pself, args: PPyObject): PPyObject; cdecl;
66
var
67
- LMsg: PAnsiChar;
+ LPyMsg: PPyObject;
68
begin
69
with GetPythonEngine do
70
71
- if PyArg_ParseTuple(args, 's:ShowMessage', @LMsg) <> 0 then
+ if PyArg_ParseTuple(args, 'O:ShowMessage', @LPyMsg) <> 0 then
72
73
- ShowMessage(string(LMsg));
+ ShowMessage(PyObjectAsString(LPyMsg));
74
Result := GetPythonEngine.ReturnNone;
75
end else
76
Result := nil;
0 commit comments