#๐Ÿ”’ I need someone to help teach and write. Nice GUI

59 messages ยท Page 1 of 1 (latest)

drifting vigil
#

I need someone to help teach and write. Nice GUI

stone sageBOT
#

@drifting vigil

Python help channel opened

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.

drifting vigil
#

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.

drifting vigil
#

Python***

ember aurora
#

oh lol

drifting vigil
#

Sorry, I typed it wrong.

#

;-;

#

Can you help me?

ember aurora
#

Can you be specific? Like what part of NiceGUI are you struggling with?

#

Do you know what you need to add?

#

@drifting vigil

drifting vigil
#

I want to add the condition that my teacher gave me to come back and edit.

ember aurora
#

what condition?

#

edit what?

drifting vigil
#

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
ember aurora
#

phew thats a lot

#

which one do you wanna do first?

drifting vigil
#

This is the latest code I've made.

ember aurora
drifting vigil
#

I am not sure

#

I try to do as much as I can.

ember aurora
drifting vigil
#

I made a game search box but there are still some bugs.

drifting vigil
#

I pressed search for the game but it didn't come up like the SQlite data file wasn't connected.

ember aurora
drifting vigil
#

I think normally if you search for a game it should come up because there is information there.

ember aurora
drifting vigil
ember aurora
#

Since all you did was the design of the thing, why not ask the person who did the development/logic stuff to do it?

drifting vigil
ember aurora
drifting vigil
#

I don't know many people but I hope people here can help me with advice and guidance.

ember aurora
drifting vigil
ember aurora
stone sageBOT
#

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))```
drifting vigil
#

Ok thanks, I'll try building it.

ember aurora
stone sageBOT
#

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)''')```
ember aurora
#

I doubt he left any documentation

#

You definitely need to build it from scratch

drifting vigil
#

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.

ember aurora
#

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

ember aurora
drifting vigil
#

ok

stone sageBOT
#
Python help channel closed

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.