Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Any improvements
Post: Any improvements
Hi
below is code for a VAT ( UK tax @ 20% ) calculator. Can calculate the tax and also back calculate from a final total.
It works, but was wondering if there is a more efficient coding for any of i... |
|
Chuck_Norwich |
Code Review |
2 |
2,533 |
Apr-26-2020, 07:30 PM |
|
|
Thread: [Tkinter] Entry box not showing 2 decimal places
Post: RE: [Tkinter] Entry box not showing 2 decimal plac...
Oh my g!
Was looking and looking and couldn't see it.
thanks. |
|
Chuck_Norwich |
GUI |
3 |
5,713 |
Apr-24-2020, 05:00 PM |
|
|
Thread: [Tkinter] Entry box not showing 2 decimal places
Post: [Tkinter] Entry box not showing 2 decimal places
Hi,
below is code(still a work in progress so commented out code that has been played with etc) that will be a VAT calculator. VAT being Value Added Tax in the UK, 20% on many items.Enter your net val... |
|
Chuck_Norwich |
GUI |
3 |
5,713 |
Apr-24-2020, 08:23 AM |
|
|
Thread: Confused by 'break' in the official documents
Post: RE: Confused by 'break' in the official documents
ok. Yes.Thanks.
The visualise Python site is perfect! |
|
Chuck_Norwich |
General Coding Help |
2 |
2,434 |
Apr-12-2020, 09:26 PM |
|
|
Thread: Confused by 'break' in the official documents
Post: Confused by 'break' in the official documents
Found these examples in the documentation.Was looking up For/Else loops. They both use a break statement. Was a bit confused why the break statement was there so ran them both without the break statem... |
|
Chuck_Norwich |
General Coding Help |
2 |
2,434 |
Apr-12-2020, 06:22 PM |
|
|
Thread: sum of lisit with no inputs
Post: RE: sum of lisit with no inputs
If anyone interested:
Solved in the final few lines by taking the summing of the lists and the resultant variables outside the functions and appending a 0 to each list so the operator has something t... |
|
Chuck_Norwich |
General Coding Help |
17 |
5,226 |
Mar-09-2020, 08:36 PM |
|
|
Thread: sum of lisit with no inputs
Post: RE: sum of lisit with no inputs
Ok, thank you. Now I get it. |
|
Chuck_Norwich |
General Coding Help |
17 |
5,226 |
Mar-08-2020, 04:12 PM |
|
|
Thread: sum of lisit with no inputs
Post: RE: sum of lisit with no inputs
Ok, thanks for replies.
Not had time to play with new info yet. Making more sense to me now. |
|
Chuck_Norwich |
General Coding Help |
17 |
5,226 |
Mar-08-2020, 12:08 PM |
|
|
Thread: sum of lisit with no inputs
Post: RE: sum of lisit with no inputs
|
Chuck_Norwich |
General Coding Help |
17 |
5,226 |
Mar-08-2020, 08:53 AM |
|
|
Thread: sum of lisit with no inputs
Post: RE: sum of lisit with no inputs
What throws me is that it works as long as I add something to each list.
But if I add nothing to the list it doesn't work.
Still trying to get my head around the answers given - they may be correct bu... |
|
Chuck_Norwich |
General Coding Help |
17 |
5,226 |
Mar-07-2020, 09:30 PM |
|
|
Thread: sum of lisit with no inputs
Post: RE: sum of lisit with no inputs
ok, ok, processing - still getting my head around programming.
What you say makes sense.
But it works when there are inputs. I guess because they are global.
Thank you. Have a direction now. |
|
Chuck_Norwich |
General Coding Help |
17 |
5,226 |
Mar-06-2020, 07:53 PM |
|
|
Thread: sum of lisit with no inputs
Post: RE: sum of lisit with no inputs
Hi.
Traceback as follows
Error:Traceback (most recent call last):
File "C:/Users/Ron McMillan/PycharmProject/invoice_generator/monthly_cis.py", line 155, in <module>
hmrc()
File "C:/Us... |
|
Chuck_Norwich |
General Coding Help |
17 |
5,226 |
Mar-06-2020, 04:46 PM |
|
|
Thread: sum of lisit with no inputs
Post: RE: sum of lisit with no inputs
Code is below.
So you don't have to trawl through the whole lot:
The lists are at lines 49 and 50.
The first list is appended at line 59
The second list is appended at line 89
The first list is summe... |
|
Chuck_Norwich |
General Coding Help |
17 |
5,226 |
Mar-05-2020, 06:09 PM |
|
|
Thread: sum of lisit with no inputs
Post: sum of lisit with no inputs
Hi.
Creating a program which is working fine-ish.
Big bug I can't get around is that as part of program are two empty lists which have numbers put into them coming from user inputs.
Lists are then s... |
|
Chuck_Norwich |
General Coding Help |
17 |
5,226 |
Mar-04-2020, 08:13 PM |
|
|
Thread: TypeError: 'tuple' object is not callable
Post: RE: TypeError: 'tuple' object is not callable
Of course! Just couldn't see it.
And yes, will post within correct tags in future. |
|
Chuck_Norwich |
General Coding Help |
2 |
3,125 |
Feb-29-2020, 08:23 PM |
|
|
Thread: TypeError: 'tuple' object is not callable
Post: TypeError: 'tuple' object is not callable
Hi,
Overall description of need: In the Uk our tax year begins in April. So April is tax month 1. I require an output of the tax month number - example is that February is tax month 11.
The function... |
|
Chuck_Norwich |
General Coding Help |
2 |
3,125 |
Feb-29-2020, 05:28 PM |
|
|
Thread: 2 sets of radiobuttons
Post: RE: 2 sets of radiobuttons
Ok. Yes, missing info.
Tkinter |
|
Chuck_Norwich |
GUI |
4 |
2,807 |
Nov-27-2019, 07:52 PM |
|
|
Thread: 2 sets of radiobuttons
Post: 2 sets of radiobuttons
Hi,
have looked ont web, but I can't seem to find a definite answer.
Have a pair of radio buttons:
rad_lt = Radiobutton(root,text='Lighting circuit',value=1)
rad_nonlt = Radiobutton(root,text='Non-... |
|
Chuck_Norwich |
GUI |
4 |
2,807 |
Nov-27-2019, 05:10 PM |
|
|
Thread: Saving as docx file from excel with new filename
Post: RE: Saving as docx file from excel with new filena...
Thanks. Will give it a whirl. |
|
Chuck_Norwich |
General Coding Help |
4 |
2,981 |
Oct-03-2019, 08:01 PM |
|
|
Thread: Saving as docx file from excel with new filename
Post: RE: Saving as docx file from excel with new filena...
Hi again,
so this didn't do what I was thinking.
If you print the src_file it gives this:
C:\Users\Ron McMillan\Desktop\demo1.xlsx\demo1.xlsx
And the print dest_file gives this:
C:\Users\Ron McMill... |
|
Chuck_Norwich |
General Coding Help |
4 |
2,981 |
Oct-03-2019, 05:49 PM |