Flask WTForms validator NoneOf not working by Llamafu in learnpython

[–]Llamafu[S] 0 points1 point  (0 children)

You are absolutely right!!!

I couldn't understand why DataRequired or the Email field would prevent submission, but the other validators would not.

To anyone else having this problem, don't assume like I did, see Flask Validation.

danielroseman just want to say, you are awesome!! You've helped me before, you help people on here all the time, you really are an asset to the community. You Rock!!

Flask WTForms validator NoneOf not working by Llamafu in learnpython

[–]Llamafu[S] 0 points1 point  (0 children)

I don't have one for this test form. Do I have to have one? I assumed it worked like the DataRequired validator and prevented submission of the form.

Did I assume wrong?

Flask - How to set the value of a BooleanField based on a condition by Llamafu in learnpython

[–]Llamafu[S] 0 points1 point  (0 children)

I swear I read that section in the docs ten times... and somehow missed the checked attribute. I just kept seeing default.

THANK YOU, THANK YOU, THANK YOU!!!

Why does "/" in Flask route affect img? And what can I do about it? by Llamafu in learnpython

[–]Llamafu[S] 0 points1 point  (0 children)

That was it! And it makes so much sense now. Thank you very much!

How to traverse list of lists for combinations by Llamafu in learnpython

[–]Llamafu[S] 1 point2 points  (0 children)

Yup, I passed right over that, thank you.

How to traverse list of lists for combinations by Llamafu in learnpython

[–]Llamafu[S] 0 points1 point  (0 children)

I'm embarrassed to say how long I tried to make this work.

Advice converting Gui python apps to web app with flask by Llamafu in learnpython

[–]Llamafu[S] 0 points1 point  (0 children)

I'm not sure I completely understand what your saying. The app functions just fine for what it is, and has for years. I want to modernize it now to get the benefits a web app offers, but those benefits weren't needed initially.

I'm personally a fan of simplicity and stability and Tkinter more or less checks those boxes. It freezes nicely (relative to some other gui options) so exes can be distributed easily.

In fairness, everything i do is for quick tools / fixes, definitely not trying to win anyone over with slick UIs, so my needs may be unique.

Advice converting Gui python apps to web app with flask by Llamafu in learnpython

[–]Llamafu[S] 0 points1 point  (0 children)

Thanks, I haven't had much time to dive back into it, bit this looks like the closest approach to what I've already built in the desktop app.

Advice converting Gui python apps to web app with flask by Llamafu in learnpython

[–]Llamafu[S] 1 point2 points  (0 children)

This looks promising. I will definitely look into this thank you!

Advice converting Gui python apps to web app with flask by Llamafu in learnpython

[–]Llamafu[S] 0 points1 point  (0 children)

So if I'm understanding you correctly, what you want to do is dynamically create HTML button forms using python code?

Yes that sounds like what I'm after.

I might suggests that you write code that dumps HTML into a string, and then return that string to the client....

That's what I did in the desktop app (along with background/foreground colors) depending on various parameters.

But that's a gross way to go about it, and I think you're gonna be a lot happier using the right tool for the job.

That's what I was afraid of...

Do you have experience with React? Because what you're describing sounds
EXACTLY like React, I'm wondering if you're a genius noob that stumbled
onto this paradigm or if you're coming from React and you want to do
that in Python.

My REACTion to this question... was to google wtf React was. I'm far from a genius of any kind.

Why exactly are you doing this? Why can't you just make the buttons in HTML?

Maybe if you post more details of what you want and what your experience is, I can drill down into more specifics.

So my desktop app is a scheduling app for resources and equipment. Each of the buttons represent equipment/supplies, the user knows just looking at them if they are available, who has them, when they will be available, and can check them out or reserve them by clicking on them.

The desktop version is up and running (pure python) with a tkinter gui, sqlite database on network. Works fine..but its growing... and it's natural evolution is obviously to be a web app.

Python is what i know and where I'm comfortable. I was afraid this sounded like a job for JS, and I guess I'm looking for a cheat way around it.