How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask Ingo U Your Own Question
Ingo U
Ingo U, Software Engineer
Category: Programming
Satisfied Customers: 755
Experience:  Over 25 years experience in software development. Expert in Microsoft .Net, C#, C++, VB, SQL
44076068
Type Your Programming Question Here...
Ingo U is online now

IngoJust to say did you receive the deposit and the

Resolved Question:

Hello Ingo
Just to say did you receive the deposit and the highest tip they only went up to 143 pounds so the question I asked if I send this to you now you should get an extra 60 then I can add a tip will that be ok
Best wishes
Anne
Submitted: 2 years ago.
Category: Programming
Expert:  Ingo U replied 2 years ago.
Hi Anne,
thanks for the rating, actually from my end it looks like the original question amount received was zero, but whole tip came through... so if you want to handle the rest through this question, that would be great
Cheers,
Ingo
Ingo U and other Programming Specialists are ready to help you
Customer: replied 2 years ago.
Hello Ingo
That's great no problem I sort out later this afternoon. Big big thank you and hope you have a great day ahead.
Best wishes
Anne
Customer: replied 2 years ago.

Hello Ingo

I think its worked this time so appreciated your patience. You should of received the funds hope you did and big big thank you for all your work-

your Gem

Best Wishes

AnneEmbarassed

Expert:  Ingo U replied 2 years ago.
Hi Anne,
yes, everything received at this point, thanks for being a good customer. Hope I can help you again sometime...
Ingo
Customer: replied 2 years ago.

Hello Ingo

Thats brilliant much appreciated your help and thank you.

Best wishes

Anne Embarassed

Yes definitely wishing a fantastic week ahead

Customer: replied 2 years ago.

Hello Ingo

Hope you are well the quiz just needs the following so if you be so kind to help and to look at the solution below and see if you get it to work ever more amazing.

Best wishes

anneLaughing

When a question is presented to the user all the radio buttons are selected, this would be better is none were selected.

Here Ingo is the possible solution

When using radio buttons the attribute 'variable' is crucial!

so when the radiobutton was configured in the Quiz_ui file the value of the attribute 'variable' for all of them was set to 'self.answerButton'.

e.g.

self._radiobutton_A1 = tkinter.Radiobutton(root,

activebackground = "#cccccc",

anchor = "w",

background = "#ffff00",

compound = "left",

font = "Tahoma 10",

highlightbackground = "#cccccc",

justify = "left",

text = "",

textvariable = self.var_A1,

value = 1,

>>>>>>> variable = self.answerButton,

wraplength = 400,

)

(>>>>>>>>>) is my empasis

and self.answerButton was itself defined in the Quiz_ui file as:

self.answerButton = tkinter.StringVar(root)

If the value of this variable is set to "0" then all radio buttons will be deselected.

self.answerButton.set( "0")

(That's it - that's all you have to do so Ingo could you test and see it works and then resend much appreciate !!)

When the user selects a radioButton then the value of this variable will change to the value of the attribute 'value' which was set when the radioButton was configured.

e.g.

self._radiobutton_A2 = tkinter.Radiobutton(root,

activebackground = "#cccccc",

anchor = "w",

background = "#ffff00",

compound = "left",

font = "Tahoma 10",

highlightbackground = "#cccccc",

justify = "left",

text = "",

textvariable = self.var_A1,

>>>>>>> value = 2,

variable = self.answerButton,

wraplength = 400,

)

Hence in the Quiz.py file when you want to test if no radiobutton has been selected :

if int(self.answerButton.get()) == 0:

(self.answerButton.get() will return a string e.g. " 0 ".

wrapping this within the function call int( ~) will give an integer e.g. 0

which is easier to test !!)

And if you want to deselect all radio buttons :

self.answerButton.set( "0")

And if you wanted to test if a particular radioButton was set (which you don't because

of the way you have implemented your logic!)

e.g. 2nd radio button :

if int(self.answerButton.get()) == 2:

Expert:  Ingo U replied 2 years ago.
Hi Anne,
I'd be happy to have a look at it. I wasn't thrilled about the radio buttons the way they come up all checked, not your normal look-n-feel, but after several attempts had to give up and move on. Maybe the feedback will show me the way to do it. I'll be in touch.
Ingo
Customer: replied 2 years ago.
That be great huge thank you for your kind message and once again appreciate if you take a look at the feedback and see if you can magically sort out.
Your a star
Best wishes
Anne
Expert:  Ingo U replied 2 years ago.
Hi Anne,
I think this is all it took:
https://www.dropbox.com/s/nxzmqofu9ixg4p6/Quiz.py?dl=0
I only changed a few lines in this file as per the comments posted; behavior seems to be as intended.
Cheers,
Ingo
Customer: replied 2 years ago.
Great Ingo your a genius I have a look tomorrow afternoon and get back to you. Extremely appreciated your amazing talent. Best wishes Anne
Expert:  Ingo U replied 2 years ago.
Hope it all works out for you. No charge of course.
Customer: replied 2 years ago.
Hello Ingo
That's very sweet of you. Fantastic it works like a dream now huge huge thankyou for your amazing work on this. You are very gifted and talented. Sorry for delay we had so many meetings and reports to write say no more. Wishing you a beautiful weekend and once again your a gem.
Best wishes
Anne