Replies: 4 comments 1 reply
-
pda_listener.dartimport 'package:flet/flet.dart'; class PdaListener extends StatefulWidget { PdaListener({ @OverRide class _PdaListener extends State @OverRide @OverRide pda_listener.pyfrom flet_core.constrained_control import ConstrainedControl class PdaListener(ConstrainedControl):
main.pyimport flet as ft
ft.app(main) This is my main file, and I want to get the text value of the PdaListener() control in main.py |
Beta Was this translation helpful? Give feedback.
-
Can you share your code as a repo? I could help you then. |
Beta Was this translation helpful? Give feedback.
-
I'm very sorry for the time difference between us, so it took us so long to reply you. I've put my code in the github repository at https://github.com/ssseee66/my_app.git, thank you for your reply.
…________________________________
发件人: TheEthicalBoy ***@***.***>
发送时间: 2024年8月13日 4:48
收件人: flet-dev/flet ***@***.***>
抄送: 略略略 ***@***.***>; Author ***@***.***>
主题: Re: [flet-dev/flet] flet-extend (Discussion #3792)
Can you share your code as a repo? I could help you then.
―
Reply to this email directly, view it on GitHub<#3792 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ASHNBUATXTUX4GHYJJTO3KDZRENQLAVCNFSM6AAAAABMK76BA6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMZRHA3TGNQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I added an instance of a Python control called PdaListener to the page, built as an apk that can listen to broadcasts on the PDA mobile terminal, and now I want to get this text value for the next step.
How do I get the text value in the input field on the image, which is the control that I have been extended to get
…________________________________
发件人: TheEthicalBoy ***@***.***>
发送时间: 2024年8月13日 20:19
收件人: flet-dev/flet ***@***.***>
抄送: 略略略 ***@***.***>; Author ***@***.***>
主题: Re: [flet-dev/flet] flet-extend (Discussion #3792)
Thanks.
Now can you please detaily explain the issue? I honestly didnt get you completely.
―
Reply to this email directly, view it on GitHub<#3792 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ASHNBUCCBYLDNGSCNA37MPTZRH2VVAVCNFSM6AAAAABMK76BA6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMZSGUZTCNI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I extended the flet application plug-in with a flutter plug-in I wrote to listen for PDA broadcast events, and the TextField control returned in my flutter package < package _ name >.dart. Now I add the returned control to the flet application via a Python control, It works fine, but I don't know how to get the control and the control properties, like TectField.text (returning the control as TextField in the Flutter package) and do the next data processing. I hope you can help me, thank you!!
I am a Chinese, English is not very good, I hope you can understand my meaning and appeal.
Beta Was this translation helpful? Give feedback.
All reactions