#๐ I need someone to help teach and write. Nice GUI
59 messages ยท Page 1 of 1 (latest)
@drifting vigil
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
I need urgent help. You can contact me via private channel and I will tell you more details.
I made NiceGUI using firetorn. Now I have done 75% of it and there are still some things that I need to add that I don't have enough knowledge about and can't do by myself.
What is "firetorn"?
Python***
oh lol
Can you be specific? Like what part of NiceGUI are you struggling with?
Do you know what you need to add?
@drifting vigil
I want to add the condition that my teacher gave me to come back and edit.
What my teacher wants to add
- Press to add the game to the game basket page
- The game basket page according to the presentation slide
- When you press to buy successfully, the game will be in the library and will show a download button to download
- The game that the user bought must be in the logged in account if you have bought it before
- Search bar Store page
This is the latest code I've made.
Does it do all of that?
Can you test it to find out?
I made a game search box but there are still some bugs.
Like what?
I pressed search for the game but it didn't come up like the SQlite data file wasn't connected.
How did you know if the sqlite data file isn't connected?
How did you make this code?
I think normally if you search for a game it should come up because there is information there.
OK but how did you know that you're getting the sqlite database isn't connected? Can you share the error message?
It's a little bit of code from someone else who did it before. I added some colors, backgrounds, and things like that.
Can you get them to fix it?
Since all you did was the design of the thing, why not ask the person who did the development/logic stuff to do it?
I have no way to contact him as he has already graduated.
How did you know he graduated? Surely you can still contact him after that.
I don't know many people but I hope people here can help me with advice and guidance.
Well sorry to say but if the person who did the development can't help, you'll have to build this from scratch. Learn how to use NiceGUI properly
My teacher told me because he didn't finish the rest and he dropped the project and chose to do something else instead.
Like for instance, this is the search store function where it searches on the games table
https://github.com/Ton07/Real-Rocket-Project/blob/main/Real Rocket Project.py#L20-L24
Real%20Rocket%20Project.py lines 20 to 24
def search_store(query):
store_content.clear()
for game in c.execute("SELECT * FROM games WHERE name LIKE ?", ('%' + query + '%',)):
ui.label(f'Game: {game[1]}')
ui.button('Add to Cart', on_click=lambda game_id=game[0], name=game[1]: add_to_cart(game_id, name))```
Ok thanks, I'll try building it.
But the games table was not created
https://github.com/Ton07/Real-Rocket-Project/blob/main/Real Rocket Project.py#L74-L75
Real%20Rocket%20Project.py lines 74 to 75
c.execute('''CREATE TABLE IF NOT EXISTS cart (game_id INTEGER PRIMARY KEY, name TEXT)''')
c.execute('''CREATE TABLE IF NOT EXISTS library (game_id INTEGER PRIMARY KEY, name TEXT)''')```
That's a terrible way to learn. It sounds like you have to fix his mistakes first before you can make it usable.
I doubt he left any documentation
You definitely need to build it from scratch
He just left the SQlite program and data files, which is usually easier for me to do with HTML.
He just gave me the link of Nicegui.
Yea but the sqlite program isn't complete. You have to fix it
Create another table for games
I don't know what you want to store in the games table
Because the select statement here shows *, which means everything. So I don't know what columns other than name is needed to make the games table
ok
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.