Title: OnSendUniData event does not work · Issue #463 · lmbelo/python4delphi · GitHub
Open Graph Title: OnSendUniData event does not work · Issue #463 · lmbelo/python4delphi
X Title: OnSendUniData event does not work · Issue #463 · lmbelo/python4delphi
Description: Hello, the OnSendUniData event assigned to TPythonGUIInputOutput is not WORK. type TRcv = class procedure PythonInputOutputSendUniData(Sender: TObject; const Data: string); end; var PythonEngine: TPythonEngine; PythonInputOutput:TPythonG...
Open Graph Description: Hello, the OnSendUniData event assigned to TPythonGUIInputOutput is not WORK. type TRcv = class procedure PythonInputOutputSendUniData(Sender: TObject; const Data: string); end; var PythonEngine: T...
X Description: Hello, the OnSendUniData event assigned to TPythonGUIInputOutput is not WORK. type TRcv = class procedure PythonInputOutputSendUniData(Sender: TObject; const Data: string); end; var PythonEngine: T...
Opengraph URL: https://github.com/lmbelo/python4delphi/issues/463
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OnSendUniData event does not work","articleBody":"Hello, the OnSendUniData event assigned to TPythonGUIInputOutput is not WORK.\r\n\r\n```\r\ntype\r\nTRcv = class\r\nprocedure PythonInputOutputSendUniData(Sender: TObject; const Data: string);\r\nend;\r\n\r\nvar\r\nPythonEngine: TPythonEngine;\r\nPythonInputOutput:TPythonGUIInputOutput;\r\nRcv:TRcv;\r\nTemp:string;\r\n\r\n{ TRcv }\r\n\r\nprocedure TRcv.PythonInputOutputSendUniData(Sender: TObject; const Data: string);\r\nbegin\r\nTemp:='Event triggered'; //\r\nend;\r\n\r\nfunction execpythonscript(const Filename:string):string;\r\nbegin\r\n Result:='';\r\n PythonEngine := TPythonEngine.Create(nil);\r\n PythonInputOutput:=TPythonGUIInputOutput.Create(nil);\r\n PythonInputOutput.OnSendUniData:=Rcv.PythonInputOutputSendUniData;\r\n PythonInputOutput.UnicodeIO:=True;\r\n PythonInputOutput.DelayWrites:=True;\r\n PythonEngine.IO:=PythonInputOutput;\r\n PythonEngine.InitThreads := True;\r\n PythonEngine.UseLastKnownVersion := True\r\n PythonEngine.AutoLoad := False;\r\n PythonEngine.AutoUnload := False;\r\n PythonEngine.AutoFinalize := True;\r\n PythonEngine.RedirectIO := True;\r\n PythonEngine.LoadDll;\r\n TPythonThread.Py_Begin_Allow_Threads;\r\nFGILState := PythonEngine.PyGILState_Ensure;\r\ntry\r\nPythonEngine.ExecFile(Filename);\r\nexcept\r\nend;\r\nPythonEngine.PyGILState_Release(FGILState);\r\nResult:=Temp; //Always empty\r\nend;\r\n```\r\n\r\n","author":{"url":"https://github.com/Uefi1","@type":"Person","name":"Uefi1"},"datePublished":"2024-03-14T09:35:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/463/python4delphi/issues/463"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5c2e666c-82a8-6785-5cae-7858e28cffb1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C81E:4B803:770522:A14BA9:6A5925CB |
| html-safe-nonce | 91b7fd98c7fa6595e80ee71b72dbb9d0a575a66606d73e97f6a7a5424ecc4c36 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODFFOjRCODAzOjc3MDUyMjpBMTRCQTk6NkE1OTI1Q0IiLCJ2aXNpdG9yX2lkIjoiMzk0MTMxMzYxNzU0NzgzMDczMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0ebff5f30e7008e5f2a494a352787de91a1a556b7071b9d8e152344a7ed69b29 |
| hovercard-subject-tag | issue:2185886384 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/lmbelo/python4delphi/463/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dd1245663057d4279552c1203a986bd0dacb85d5f5a8fa0fc9e7d3c84686f153/lmbelo/python4delphi/issues/463 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dd1245663057d4279552c1203a986bd0dacb85d5f5a8fa0fc9e7d3c84686f153/lmbelo/python4delphi/issues/463 |
| og:image:alt | Hello, the OnSendUniData event assigned to TPythonGUIInputOutput is not WORK. type TRcv = class procedure PythonInputOutputSendUniData(Sender: TObject; const Data: string); end; var PythonEngine: T... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Uefi1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 30abb2b48d3b1b476bbaf01f49ead8ef91062bfd762d3fa28a956f4c99653343 |
| turbo-cache-control | no-preview |
| go-import | github.com/lmbelo/python4delphi git https://github.com/lmbelo/python4delphi.git |
| octolytics-dimension-user_id | 8376898 |
| octolytics-dimension-user_login | lmbelo |
| octolytics-dimension-repository_id | 41310993 |
| octolytics-dimension-repository_nwo | lmbelo/python4delphi |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 41310993 |
| octolytics-dimension-repository_network_root_nwo | lmbelo/python4delphi |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f2e5b4fd472ea10ac216e358bbd0821a90dae8bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width