Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Error in Python 3.6 and how to limit decimal places
Post: RE: Error in Python 3.6 and how to limit decimal p...

(Mar-17-2017, 10:54 PM)snippsat Wrote: Add f. ..... snip ..... snippsat, Adding f produces perfect output.  For other beginners, here's the code: for myvalue in range(2,11):     Radiobutton(rightFr...
Raptor88 General Coding Help 6 9,805 Mar-18-2017, 05:02 AM
    Thread: Error in Python 3.6 and how to limit decimal places
Post: RE: Error in Python 3.6 and how to limit decimal p...

metulburr, ichabod801 and snippsat,     Thanks for your responses. I tried the suggestions from metulburr and snippsat: # metulburr: for myvalue in range(2,11):     Radiobutton(rightFrame, text='{:.1...
Raptor88 General Coding Help 6 9,805 Mar-17-2017, 10:38 PM
    Thread: Error in Python 3.6 and how to limit decimal places
Post: Error in Python 3.6 and how to limit decimal place...

Using Python 3.6 and tkinter that comes with it. My tkinter code: for myvalue in range(2,11):     Radiobutton(rightFrame, text=myvalue*.1, font=(None, 14), variable=var, value=myvalue).pack()Produces...
Raptor88 General Coding Help 6 9,805 Mar-17-2017, 09:24 PM
    Thread: How do you (experienced) do it?
Post: RE: How do you (experienced) do it?

(Mar-15-2017, 09:14 PM)ichabod801 Wrote: I would do it as step A, and maybe get even more detailed than that. Like write one piece of task 1, test it, write another piece of task 1, test that and an...
Raptor88 General Coding Help 2 3,254 Mar-16-2017, 01:59 AM
    Thread: How do you (experienced) do it?
Post: How do you (experienced) do it?

Assume the program requires having: ... Task-1: One GUI window to do something. ... Task-2: A second GUI window to do something else. ... Task-3: Code to do something. A. Would you open a new .py fil...
Raptor88 General Coding Help 2 3,254 Mar-15-2017, 09:08 PM
    Thread: tkinter - Make circle for radio button bigger
Post: RE: tkinter - Make circle for radio button bigger

(Mar-07-2017, 03:50 AM)metulburr Wrote: I might be wrong, but i dont think there is an option to change the size of the default radio button itself. However you can use images, and then just scale t...
Raptor88 General Coding Help 5 14,040 Mar-07-2017, 06:01 AM
    Thread: tkinter - Make circle for radio button bigger
Post: tkinter - Make circle for radio button bigger

Running Python 3.6.  Using tkinter for GUI. How can I make the circle for a radio button bigger?  I'm referring to the circle that the user clicks.  I can use padx and pady to put more space on the s...
Raptor88 General Coding Help 5 14,040 Mar-07-2017, 01:22 AM
    Thread: How to exit after a try exception?
Post: RE: How to exit after a try exception?

(Mar-05-2017, 08:30 AM)wavic Wrote: When you call the main() function in if __name__ == "__main__": block do it as a sys.exit() callback. This will give the main() return status to sys.exit() which ...
Raptor88 General Coding Help 11 57,028 Mar-05-2017, 08:56 AM
    Thread: How to exit after a try exception?
Post: RE: How to exit after a try exception?

(Mar-04-2017, 08:57 PM)snippsat Wrote: When you have a GUI or web-application you have to be spare with error message to user. It can be okay to give message like "file not found" and "division erro...
Raptor88 General Coding Help 11 57,028 Mar-05-2017, 01:07 AM
    Thread: How to exit after a try exception?
Post: RE: How to exit after a try exception?

(Mar-04-2017, 01:47 AM)ichabod801 Wrote: I'm not sure what you mean by "exit the program." In one sense, if you want to exit the program at that point, you don't put in a try/except block. The ZeroD...
Raptor88 General Coding Help 11 57,028 Mar-04-2017, 07:41 PM
    Thread: How to exit after a try exception?
Post: How to exit after a try exception?

I've read so much about try and exception but none tell how to exit the program gracefully and not continue the rest of the code.  For example: try:     result = x / y except ZeroDivisionError:     p...
Raptor88 General Coding Help 11 57,028 Mar-04-2017, 01:15 AM
    Thread: Python 3.6 Installed, But Doesn't Exist
Post: RE: Python 3.6 Installed, But Doesn't Exist

(Feb-27-2017, 08:47 PM)Atomike Wrote: Using Windows 7. Installed Python 3.6, and it won't go.  I'm trying to change the "Path" file thing in Windows, but I only seem to have the "Python35-32" folder...
Raptor88 General Coding Help 3 46,743 Feb-27-2017, 09:08 PM
    Thread: Buy used Python Cookbook 2nd edition though learning Python 3.6?
Post: RE: Buy used Python Cookbook 2nd edition though le...

(Feb-27-2017, 07:14 AM)Larz60+ Wrote: Why don't you look for the current edition Here's a copy at $17.33 http://www.biblio.com/book/python-cookbo...swodrQoGPg Thank you for taking the time to he...
Raptor88 General Coding Help 3 4,261 Feb-27-2017, 10:08 AM
    Thread: Buy used Python Cookbook 2nd edition though learning Python 3.6?
Post: Buy used Python Cookbook 2nd edition though learni...

I'm learning Python using version 3.6.  I can buy a used copy of the "Python Cookbook" 2nd edition for $6.00 including shipping.  But that's via mail order, so I can't examine the book to see wh...
Raptor88 General Coding Help 3 4,261 Feb-27-2017, 05:26 AM
    Thread: Is there a something like "case" in Python 3.6?
Post: RE: Is there a something like "case" in Python 3.6...

(Feb-26-2017, 10:35 PM)snippsat Wrote: You can try Jupyter Notebook in browser. There are a lot of cool stuff that can be made with it. There are several REPL for Python,the default one show up whe...
Raptor88 General Coding Help 18 20,508 Feb-27-2017, 02:44 AM
    Thread: Is there a something like "case" in Python 3.6?
Post: RE: Is there a something like "case" in Python 3.6...

(Feb-26-2017, 08:47 PM)zivoni Wrote: (Feb-26-2017, 06:40 PM)Raptor88 Wrote: Studying your example.  What's the reason for all of the leading "...:" dots and colon?  Have not seen that in any Pytho...
Raptor88 General Coding Help 18 20,508 Feb-26-2017, 09:31 PM
    Thread: Is there a something like "case" in Python 3.6?
Post: RE: Is there a something like "case" in Python 3.6...

(Feb-25-2017, 11:22 AM)ichabod801 Wrote: (Feb-25-2017, 10:33 AM)Raptor88 Wrote: Reply to zivoni:  If there is some short code for the "dictionary mapping" approach that you can post, or a link to ...
Raptor88 General Coding Help 18 20,508 Feb-26-2017, 06:40 PM
    Thread: Is there a something like "case" in Python 3.6?
Post: RE: Is there a something like "case" in Python 3.6...

(Feb-24-2017, 10:11 PM)zivoni Wrote: Sometimes switch could be replaced with a lighter "dictionary mapping" approach when you either find values directly in a dictionary (it could be better to "prep...
Raptor88 General Coding Help 18 20,508 Feb-25-2017, 10:33 AM
    Thread: Is there a built-in function to replace multiple bytes?
Post: RE: Is there a built-in function to replace multip...

(Feb-24-2017, 11:53 PM)zivoni Wrote: If you want to replace 7 bytes from given index mx, you can do byteData[mx : mx+7] = 1, 2, 3, 4, 5, 6, 7bytearray is mutable, so it will work. And if you want th...
Raptor88 General Coding Help 4 33,836 Feb-25-2017, 03:48 AM
    Thread: Is there a something like "case" in Python 3.6?
Post: RE: Is there a something like "case" in Python 3.6...

(Feb-24-2017, 08:38 PM)Mekire Wrote: In python we switch on dictionaries. A brief (and silly) example: .... snip to save bandwidth .... This technique is extremely common and useful in a wide vari...
Raptor88 General Coding Help 18 20,508 Feb-24-2017, 08:56 PM

User Panel Messages

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