We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b920fbd commit 2d96639Copy full SHA for 2d96639
Demos/Demo16/Example2/Unit1.pas
@@ -88,7 +88,7 @@ function TForm1.GetProperty(pSelf, Args : PPyObject) : PPyObject; cdecl;
88
Result := VariantAsPyObject(rgSex.ItemIndex)
89
else
90
begin
91
- PyErr_SetString (PyExc_AttributeError^, PAnsiChar(Format('Unknown property "%s"', [key])));
+ PyErr_SetString (PyExc_AttributeError^, PAnsiChar(UTF8Encode(Format('Unknown property "%s"', [key]))));
92
Result := nil;
93
end;
94
end
@@ -136,7 +136,7 @@ function TForm1.SetProperty(pSelf, Args : PPyObject) : PPyObject; cdecl;
136
137
138
139
140
141
142
0 commit comments