Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use With Flet change font size FText("tolol").qt(StyleSheet="font-size:30px") not work #2

Open
bobwatcherx opened this issue May 17, 2023 · 5 comments

Comments

@bobwatcherx
Copy link

how to use with flet
i want change size font and other
not work

my code
FText("tolol").qt(StyleSheet="font-size:30px")

@bobwatcherx
Copy link
Author

and how to spaceBetween in FRow()

with FRow(alignment="spaceBetween):

@bobwatcherx
Copy link
Author

and how to use FAppBar with Flet

my code not work

def content(self):
with FWindow(title="test",size=(330,500)):
FAppBar()
with FColumn():
with FRow():
FElevatedButton("-").click(self.min),
FText(f"{data.myval}").qt(StyleSheet="font-size:30px"),
FElevatedButton("+").click(self.add),
FText(data.counter),
with FRow():
FTextField(data("counter"))

@buganini
Copy link
Owner

buganini commented May 17, 2023

Flet backend is very preliminary right now, and .qt() is for QT backend
there should be a .flet() for FLET specific styling and a .style(fontSize=,color=,bgColor=.....) for generic usage, but it's not done yet.

@buganini
Copy link
Owner

buganini commented May 22, 2023

While there are still many things missing, with the latest commit a3d8730
you can use .flet() to specify flet properties, eg. FLabel("test").flet(size=16)

@bobwatcherx
Copy link
Author

bobwatcherx commented May 22, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants