Skip to content

Commit 129b6d8

Browse files
committed
Allow the components to be used with Multi-Device applications in all platforms.
1 parent 3fea662 commit 129b6d8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

PythonForDelphi/Components/Sources/Core/PythonEngine.pas

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ EPyWindowsError = class (EPyOSError);
13741374
TIOStringList = TStringList;
13751375

13761376
{$IF not Defined(FPC) and (CompilerVersion >= 23)}
1377-
[ComponentPlatformsAttribute(pidWin32 or pidWin64)]
1377+
[ComponentPlatformsAttribute(pidAllPlatforms)]
13781378
{$IFEND}
13791379
TPythonInputOutput = class(TComponent)
13801380
protected
@@ -2122,7 +2122,7 @@ TPythonTraceback = class
21222122
end;
21232123

21242124
{$IF not Defined(FPC) and (CompilerVersion >= 23)}
2125-
[ComponentPlatformsAttribute(pidWin32 or pidWin64)]
2125+
[ComponentPlatformsAttribute(pidAllPlatforms)]
21262126
{$IFEND}
21272127
TPythonEngine = class(TPythonInterface)
21282128
private
@@ -2599,7 +2599,7 @@ TErrors = class(TCollection)
25992599
end;
26002600

26012601
{$IF not Defined(FPC) and (CompilerVersion >= 23)}
2602-
[ComponentPlatformsAttribute(pidWin32 or pidWin64)]
2602+
[ComponentPlatformsAttribute(pidAllPlatforms)]
26032603
{$IFEND}
26042604
TPythonModule = class(TMethodsContainer)
26052605
protected
@@ -2865,7 +2865,7 @@ TTypeServices = class(TPersistent)
28652865
// The component that initializes the Python type and
28662866
// that creates instances of itself.
28672867
{$IF not Defined(FPC) and (CompilerVersion >= 23)}
2868-
[ComponentPlatformsAttribute(pidWin32 or pidWin64)]
2868+
[ComponentPlatformsAttribute(pidAllPlatforms)]
28692869
{$IFEND}
28702870
TPythonType = class(TGetSetContainer)
28712871
protected
@@ -2953,7 +2953,7 @@ TPythonType = class(TGetSetContainer)
29532953
TExtSetDataEvent = procedure ( Sender : TObject; Data : PPyObject) of Object;
29542954

29552955
{$IF not Defined(FPC) and (CompilerVersion >= 23)}
2956-
[ComponentPlatformsAttribute(pidWin32 or pidWin64)]
2956+
[ComponentPlatformsAttribute(pidAllPlatforms)]
29572957
{$IFEND}
29582958
TPythonDelphiVar = class( TEngineClient )
29592959
protected

PythonForDelphi/Components/Sources/Core/WrapDelphi.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ TRegisteredUnits = class
752752
Method EventHandlers.RegisterHandler can be used to add event handling functionality
753753
}
754754
{$IF not Defined(FPC) and (CompilerVersion >= 23)}
755-
[ComponentPlatformsAttribute(pidWin32 or pidWin64)]
755+
[ComponentPlatformsAttribute(pidAllPlatforms)]
756756
{$IFEND}
757757
TPyDelphiWrapper = class(TEngineClient, IFreeNotificationSubscriber)
758758
private

PythonForDelphi/Components/Sources/VCL/PythonDatabase.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface
2222
uses Classes, PythonEngine;
2323
type
2424
{$IF not Defined(FPC) and (CompilerVersion >= 23)}
25-
[ComponentPlatformsAttribute(pidWin32 or pidWin64)]
25+
[ComponentPlatformsAttribute(pidAllPlatforms)]
2626
{$IFEND}
2727
TPythonDatabase = class(TEngineClient)
2828
protected

0 commit comments

Comments
 (0)