File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -556,7 +556,8 @@ function CheckTouchAttribute(AAttribute: PPyObject; const AAttributeName: string
556
556
557
557
function TouchActionToPython (ATouchAction: TTouchAction): PPyObject;
558
558
begin
559
- Result := GetPythonEngine.PyUnicodeFromString(TRttiEnumerationType.GetName(ATouchAction));
559
+ Result := GetPythonEngine.PyUnicodeFromString(
560
+ TRttiEnumerationType.GetName<TTouchAction>(ATouchAction));
560
561
end ;
561
562
562
563
{ TPyDelphiFmxObject }
@@ -1219,7 +1220,7 @@ procedure TMouseEventHandler.DoEvent(Sender: TObject; Button: TMouseButton;
1219
1220
if Assigned(Callable) and PythonOK then
1220
1221
with GetPythonEngine do begin
1221
1222
LPyObject := PyDelphiWrapper.Wrap(Sender);
1222
- LPyButton := PyLong_FromLong(Ord( Button) );
1223
+ LPyButton := MouseButtonToPython( Button);
1223
1224
LPyX := PyFloat_FromDouble(X);
1224
1225
LPyY := PyFloat_FromDouble(Y);
1225
1226
LPyTuple := PyTuple_New(5 );
You can’t perform that action at this time.
0 commit comments