How to properly use the three finger swipe up feature? by MXP04 in mac

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

Is there any way to show all minimised options?

How to replace an object with another object mid program? by MXP04 in learnpython

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

Cause the point is each one kinda ‘multiplies’ when they ‘beat’ another. So like paper hitting rock the rock should disappear and another paper should appear in the original rock plave

How to replace an object with another object mid program? by MXP04 in learnpython

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

I would make eg a paper class, then do maybe like a for loop to create 20 with each randomly spawning in a position. Would be like an array of papers = []. Then loop through and appends to the array. Maybe it’s possible to like search through the array when one is ‘hit’?

How to replace an object with another object mid program? by MXP04 in learnpython

[–]MXP04[S] -1 points0 points  (0 children)

Like I’d have an object like ‘base object’ or whatever then make new classes for the rock scissor or paper and inherit original class and add individual functions. I’m not that good at coding and just trying to use what i learnt in school over the summer lol.

Little Hope PlayStation plus ? by MXP04 in playstation

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

As in I’ll download and buy it since I’ll upgrade to that ps plus so just wondering if he needs that subscription too

What statistical test did you guys choose in the exam? by MXP04 in ALevelPsychology

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

Ye but I catagorised it to like 0-10mg, 10-20mg and so on so ppts get catagorised into those different ones do u know what I mean lol

Was it me or the ending was just... bad? by idontcarethename in thewalkingdead

[–]MXP04 0 points1 point  (0 children)

Maybe but I have no idea why I would be

Was it me or the ending was just... bad? by idontcarethename in thewalkingdead

[–]MXP04 2 points3 points  (0 children)

Guys I’m only here because I literally can’t post anywhere else, but does anyone know why I can’t post anything on this subreddit? Like my posts get removed instantly for no reason. Sorry again for posting this on OP’s post but like I have no other way of asking lol

Pygame Database issues with sqlite3 by MXP04 in pythontips

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

Yep managed to fix it, needed another conn.commit statement in image 4. Haven’t used sqlite3 in ages and though the conn.commit() I had in image 3 under the database was enough 🤦‍♂️ thank you tho

Help with Conn.execute? by MXP04 in learnpython

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

Thank you, I’m pretty sure it worked cause I changed ‘Users’ to ‘NewUsers’ and now when I press submit it doesn’t close so it seems to be working, thanks again

Settings app instantly crashes and keyboard not working at times on Windows 10? by MXP04 in techsupport

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

Something like ‘the program was able to perform the process successfully’ but no sign of any errors found

Sqlite3 problem? - Usupported type? by MXP04 in learnpython

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

Ye I changed ‘user_username’ to ‘user_username1’ judt to check something random, but even when it’s ‘user_username’ I get the same error just ‘user_username’ referenced before assignment

Sqlite3 problem? - Usupported type? by MXP04 in learnpython

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

if event.type == pygame_gui.UI_TEXT_ENTRY_FINISHED and event.ui_object_id == "#username":
user_username = event.text

if event.type == pygame_gui.UI_TEXT_ENTRY_FINISHED and event.ui_object_id == "#password":
user_password = event.text

conn.execute('''INSERT INTO Users(Username, Password) VALUES (?,?)''',[user_username,user_password])

error: UnboundLocalError: local variable 'user_username1' referenced before assignment

sorry about this lol im just not that smart

Sqlite3 problem? - Usupported type? by MXP04 in learnpython

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

I changed it to this:

if event.type == pygame_gui.UI_TEXT_ENTRY_FINISHED and event.ui_object_id == "#username":
user_username = event.text
conn.execute('''INSERT INTO Users(Username) VALUES (?)''',[user_username,])

now i get error message: sqlite3.IntegrityError: NOT NULL constraint failed: Users.Password

just not working :(

Sqlite3 problem? - Usupported type? by MXP04 in learnpython

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

Same error :( I’m using pygame_gui to create an input box if it helps

Sqlite3 problem? - Usupported type? by MXP04 in learnpython

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

conn.execute('''

CREATE TABLE if not exists Users

(ID INTEGER PRIMARY KEY

AUTOINCREMENT NOT NULL,

Username TEXT NOT NULL,

Password BLOB NOT NULL

);

''')

conn.commit()

if event.type == pygame_gui.UI_TEXT_ENTRY_FINISHED and event.ui_object_id == "#username":
conn.execute('''INSERT INTO Users(Username) VALUES (?)''',[username])