Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: TypeError: setText(self, str): too many arguments
Post: RE: TypeError: setText(self, str): too many argume...

Thank you for the help!
CabbageMan General Coding Help 3 7,905 Jan-08-2020, 09:33 PM
    Thread: I'm getting an error, please help! thanks
Post: RE: I'm getting an error, please help! thanks

I forgot to add, when you call on your function you also have to add the 'starting_crate_num' variable name. start(starting_crate_num)
CabbageMan General Coding Help 4 2,034 Jan-08-2020, 09:30 PM
    Thread: I'm getting an error, please help! thanks
Post: RE: I'm getting an error, please help! thanks

If you want to reassign the 'starting_crate_num' variable, you need to specify that you want to use the variable from outside the function. You do this by writing the variable name in the parentheses....
CabbageMan General Coding Help 4 2,034 Jan-08-2020, 09:01 PM
    Thread: TypeError: setText(self, str): too many arguments
Post: TypeError: setText(self, str): too many arguments

My code is meant to multiply a number with pi, but when I run it I get the error: TypeError: setText(self, str): too many arguments def pi(self): if self.tall_input.text() == "" or self.tall_i...
CabbageMan General Coding Help 3 7,905 Jan-08-2020, 08:28 PM
    Thread: NameError: name 'edit' is not defined
Post: RE: NameError: name 'edit' is not defined

(Dec-17-2019, 04:47 PM)ichabod801 Wrote: That code looks fine, so I think your error is something else. Repost your current code, specify how you are calling the method, and what inputs you are usin...
CabbageMan General Coding Help 5 3,976 Dec-17-2019, 04:48 PM
    Thread: NameError: name 'edit' is not defined
Post: RE: NameError: name 'edit' is not defined

(Dec-17-2019, 04:03 PM)ichabod801 Wrote: Yes, you can pass the value as a parameter. And since it looks like you want to change the value outside of the function, you would return the value. It look...
CabbageMan General Coding Help 5 3,976 Dec-17-2019, 04:32 PM
    Thread: NameError: name 'edit' is not defined
Post: NameError: name 'edit' is not defined

I am trying to get the value from "edit", but I can't seem to get it to work. edit = 0 def knapp_1(self): global edit if edit == 0: edit = 1 else: ...
CabbageMan General Coding Help 5 3,976 Dec-17-2019, 03:34 PM
    Thread: ImportError: cannot import name 'gui' from 'appJar'
Post: ImportError: cannot import name 'gui' from 'appJar...

I want to use appJar for some simple GUI, but the import function doesn't work. Does anyone know how I can fix it? The code is taken from "http://appjar.info/pythonWidgetLayout/". from appJar import g...
CabbageMan General Coding Help 1 2,862 Sep-04-2019, 06:18 PM
    Thread: Unexpected output: if statement
Post: Unexpected output: if statement

I am pretty new to python, and I am trying to make a encrypter/decrypter, but my "if statement" is not working. Every time i run the program, it runs the first option("if action == "Krypter" or "krypt...
CabbageMan General Coding Help 1 1,811 Sep-04-2019, 04:04 PM

User Panel Messages

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