- Strength to Increase Rep
- +10
- Strength to Decrease Rep
- -2
- Upvotes Received
- 167
- Posts with Upvotes
- 129
- Upvoting Members
- 42
- Downvotes Received
- 13
- Posts with Downvotes
- 13
- Downvoting Members
- 10
324 Posted Topics
Re: “Intellectual growth should commence at birth and cease only at death” -- Albert Einstein | |
Re: I hate it when they interrupt all those nice advertisements with their lousy program. | |
Re: Just a simple tomato and mozzarella salad, our garden is full of ripe tomatoes! | |
Re: If you model it properly you can. | |
![]() | Re: Has anyone seen "Fury" yet? Most war movies are such silly fake, so I am reluctant to waste my money. |
Re: the line app.exec_() starts the event loop and you have two of those lines | |
Re: The dinosaur "Dreadnoughtus" had a 37 foot-long neck, a 30 foot tail, and weighed an estimated 65 tons. | |
Re: Super fast for very large numbers: def miller_rabin_isprime(a, i, n): """ Miller-Rabin primality test returns a 1 if n is a prime usually i = n - 1 does not test prime 2 """ if i == 0: return 1 x = miller_rabin_isprime(a, i // 2, n) if x == … | |
A simple way to create a toggle button for the Tkinter Python GUI toolkit. | |
Re: The wx.calendar.CalendarCtrl() control gives you more flexibility: # explore the wx.calendar.CalendarCtrl() control # allows for point and click date input import wx import wx.calendar as cal class MyCalendar(wx.Dialog): """create a simple dialog window with a calendar display""" def __init__(self, parent, mytitle): wx.Dialog.__init__(self, parent, wx.ID_ANY, mytitle) # use a box sizer … | |
Re: The line `for image in image_files)` is in your error code but not in the original snippet. So, if you doctored up the snippet code, we would have to be mind readers to help you. | |
![]() | |
Re: Keep watching TV, the answer might come up. | |
Re: I don't think this is that type of keylogger. | |
| |
Re: Use your brain, don't be a sheep and follow blindly! ![]() | |
Re: Check if an input is numeric then do a calculation (Python2 syntax): [code]def is_numeric(s): """ check if a string s is numeric contains only character like '-+1234567890.' (the period maybe a comma in some countries) """ for c in s: if c not in '-+1234567890.': return False return True def … | |
Re: You can apply Python to the control of robots, see: [url]http://wiki.roboteducation.org/Main_Page[/url] | |
| |
Re: [QUOTE=vegaseat;707149]The frog throws up its stomach first, so the stomach (inside-out) is dangling out of its mouth. Then the frog uses its forearms to dig out all of the stomach's contents and then swallows the stomach back down again. A good lunchtime conversation piece![/QUOTE]I got to get myself a frog! … | |
Re: Well, there is a record of all the YouTube videos you ever watched, all the emails you send, all the phone calls you made. Wonder who pays for storage and retrieval? | |
Re: Man or woman programmer against the beastly computer, quite a challenge at times. Make the beast sing when you want it to do so. | |
![]() | Re: The Python concurrent.futures module provides a high-level interface for asynchronously executing callables. |
Re: Maybe A = 3 B = 4 C = 6 V = A*B*C PRINT A; B; C; V You have to multiply ABC, can't do it on my lousy iPad. | |
Re: Hydrocarbons burn to form water and carbon dioxide. The latter would be hard to collect in your car since it is a gas. | |
![]() | Re: If other countries would pick your leaders, they would pick the clowns you have. ![]() |
Re: My nose ring, eyebrow ring, belly ring, lip ring and ear rings all match. | |
Re: Try to find a government job! Those jobs pay well and don't require much effort. | |
Re: Ask around the more senior students for the best teachers. | |
Re: Sounds interesting. You should post this as a code snippet rather than bury in in the back of this thread. | |
Re: Get a Raspberry Pi computer (its Linux OS has C, C++, Ruby, Java and Python) and write some C code to explore its IO pins for computer control projects. Note: Amazon.com has kits real cheap. The Raspberry Pi is usually about $35. | |
| |
Re: The start of a more elaborate editor using the PySide/PyQt GUI toolkit: https://www.daniweb.com/software-development/python/threads/32007/projects-for-the-beginner/14#post1840298 | |
Re: Try file modes "wb" and "rb" Your algorithm will give you non-text characters. | |
Re: Good idea! Would google or Bing be part of it? | |
Re: Use () to change the order: mylist = [6, '/', 3, '+', 9, '+', 8, '+', 1, '/', 2] result = eval(' '.join(str(x) for x in mylist)) print(result) # --> 19 mylist = ['(', 6, '/', 3, '+', 9, '+', 8, '+', 1, ')', '/', 2] result = eval(' '.join(str(x) … | |
Re: The MainForm `__init__` arguments are (self, filename, nesting, separator, parent=None) and should give you a hint The author of the book does not do any necessary commenting and should be discounted. I would return the lousy book. | |
Re: There are a lot of mistakes in that code! Maybe you should study up on Python class and argument passing in Tkinter Button command. | |
Re: Take a look at at: https://www.daniweb.com/software-development/python/code/467452/updated-tiny-tkinter-calculator-python there might be some helpful hints. | |
![]() | Re: We make it mildly easier to write a GUI program, but you have to learn the somewhat obscure Ruby language. This must be an early April joke. ![]() |
Re: Thou shalt not mix grid() and pack() layout managers! | |
Re: What does your colors table look like? What does your traceback error message look like? | |
Re: Changing chr() to unichr() won't help. your algorithm is wrong! | |
Re: I don't think too many folks eat rancid hot dogs for football games. In front of the home TV or the Sports Bar monitors it's chicken wing time, they wash down easily with Budwiser. I hope the Seahawks win against the "deflate balls" Patriots. | |
Re: Do each of the players throw the dice 100 times? |
The End.