Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: can't update label to include variable
Post: can't update label to include variable

im really new to python,this was made using extensive youtube tutorials im trying to make a GUI app for a game i play:don't starve together the app should take the ammount of mushrooms(2 red raw,3 gre...
foxtreat GUI 2 3,679 Dec-01-2018, 03:13 AM
    Thread: pickle- how does it work
Post: pickle- how does it work

I made a simple text fighting game.but i need to be able to save and load variables.i was tols to use pickle. But i have no experience in what it even is.i googled arouns but i can't understand how it...
foxtreat General Coding Help 1 3,428 Jun-19-2017, 09:16 AM
    Thread: how to write and read variables to a file
Post: how to write and read variables to a file

I googled around to see how i can write a variable lets say the string name,which equals "john"to a file and then when i reopen the script i can read te file and set name=john.as im making a simple te...
foxtreat General Coding Help 2 2,871 Jun-14-2017, 01:19 PM
    Thread: loop doesn't advance-py3 text game
Post: RE: loop doesn't advance-py3 text game

(Jun-06-2017, 02:14 PM)volcano63 Wrote: input returns string value - convert it to integer choice = int(choice)Same goes for shop I didn't know it worked that way but instead of changing the input t...
foxtreat General Coding Help 2 3,585 Jun-08-2017, 06:41 AM
    Thread: loop doesn't advance-py3 text game
Post: loop doesn't advance-py3 text game

Making a simple fighting text based game where you can fight turn based and gain xp with which you can buy more hp.armour and etc.however it needs to have a menu .curently making the shop but i made t...
foxtreat General Coding Help 2 3,585 Jun-06-2017, 05:31 AM
    Thread: Go up script/menu(a goto command)
Post: RE: Go up script/menu(a goto command)

Certainly its me again and im EXTREMELY sorry for bothering so much but it gives me this error Error:  File "foxware 2.0.py", line 3     def math_menu()                   ^ SyntaxError: invalid syntax...
foxtreat General Coding Help 7 8,255 Apr-24-2017, 05:54 PM
    Thread: Cant multiply sequence by non-int type 'str'
Post: RE: Cant multiply sequence by non-int type 'str'

oh sorry,i didn't know if float+float=float or str and decided to play safe,anyway the code works and that extra kilobyte won't do much harm MANY thanks!!
foxtreat General Coding Help 6 7,069 Apr-24-2017, 05:28 PM
    Thread: Go up script/menu(a goto command)
Post: RE: Go up script/menu(a goto command)

(Apr-24-2017, 04:48 PM)ichabod801 Wrote: Well, generally this would all be in a loop that would go until you got a 2 (exit). Then you could have a sub-loop for sub-menus. I would suggest having ea...
foxtreat General Coding Help 7 8,255 Apr-24-2017, 05:26 PM
    Thread: Cant multiply sequence by non-int type 'str'
Post: RE: Cant multiply sequence by non-int type 'str'

thank you!after some tinkering i managed to get the code to run AND made it work better here is the final deal capable of solving a certain math problem  import math     print  ("Ax*2+Bx+C=0")     pri...
foxtreat General Coding Help 6 7,069 Apr-24-2017, 04:39 PM
    Thread: Go up script/menu(a goto command)
Post: Go up script/menu(a goto command)

i know there is not a goto or similar command in python,im trying to make a menu with submenus a main menu that gives you games/math/managment options,and when you choose one of them it brings you to...
foxtreat General Coding Help 7 8,255 Apr-24-2017, 04:37 PM
    Thread: Cant multiply sequence by non-int type 'str'
Post: RE: Cant multiply sequence by non-int type 'str'

i need it to be able to handle numbers like 2.31 and -12.9 for example so i set it as float if im correct current code is this,it still fails import math print ("Ax*2+Bx+C=0") print ("what is your A?...
foxtreat General Coding Help 6 7,069 Apr-24-2017, 02:37 PM
    Thread: Cant multiply sequence by non-int type 'str'
Post: Cant multiply sequence by non-int type 'str'

trying to make a script that solves a simple math problem (example x(2)+4x-2=0) however i get this error and can't find why i get it,i went from python 2 to 3 and had to add () to the print commands ,...
foxtreat General Coding Help 6 7,069 Apr-24-2017, 02:04 PM
    Thread: Name error/is not defined
Post: RE: Name error/is not defined

i changed the code and it worked,i was sure i installed python 3,but when i checked i did infact have the wrong version,and i didn't even check correctly,sorry for the trubles
foxtreat General Coding Help 5 65,993 Apr-16-2017, 12:02 AM
    Thread: Name error/is not defined
Post: Name error/is not defined

i just starter learning coding/programing,and after some joking around with bash i decided to learn python i am making a script that should ask for your name and make a folder in the scripts directory...
foxtreat General Coding Help 5 65,993 Apr-15-2017, 11:51 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020