I am so glad this forum is back online, and I am going to jump right in. I am building a GUI for a school-related programming project. I am using a LEDNumberCtrl, and I want to set its value using a variable, but I get an error when I do.

"ave" being the variable. Here is the error I get: AttributeError : 'LEDNumberCtrl' object has no attribute 'SetValue(ave)'I have never used an LED number control before, so this is new. I assume it means that the control doesnt take a variable, and it assumes that it is a string, but it is actually a number. I am sure the solution is simple, but I just don't know where to go with it. Any ideas? Thanks!

Stranac, the program runs, and builds the control, but there is a button, which updates the numbers in the LED and when I push the button, I get the error.

The reason I am reluctant to post code is because I do not code very efficiently and I know it is probably full of errors. When I have posted code in the past, people just tell me all my other problems that I am already aware of, and don't help with what I am asking about.

ms4sman wrote:The reason I am reluctant to post code is because I do not code very efficiently and I know it is probably full of errors. When I have posted code in the past, people just tell me all my other problems that I am already aware of, and don't help with what I am asking about.

Don't worry, we won't just point out other problems you have.We will also try to help with the one you're asking about.

The reason we point out other problems is, forums are not meant to help a single user, once.Other people will run into what's written here, and if they see code that works, and no one points out the mistakes, they could assume it's the best way to do it.

Anyway, it's hard to help without actually seeing the problem.The code you posted works fine.There's no way for me to guess what's wrong later, in the code you haven't shown.

If you(for whatever reason) don't want to show the actual code, at least show a basic(runnable, please) example that reproduces the error.

It wasn't meant to change anything it just a print statement, i get the feeling that your variable 'self.lEDNumberCtrl1' does not contain a led control and to check that i asked you to print the result of that variable.what was the result of the print statement i asked you to try in the previous post ?

stranac wrote:It wasn't meant to change anything it just a print statement

Sorry, when I said nothing changed, I meant that there was no output that I could see.

However, when I tried to recreate the problem in a less cluttered app for you guys to see, I found part of my problem. The error I showed you was different. I know what happened, but it would be hard to explain. Here is some code that reproduces the real problem. Yes, I still use Boa Constructor, and I know it is outdated, but I still like it. Don't hate!

Oh my gosh! It works now! Thank you so much! Sorry about the SetValueString, that was something I was trying, and it didn't work, but I forgot to change it before posting code. Thanks again for your help!