1,175 Posted Topics
Re: Your code is loaded with errors. I assume this is something like you want, it actually works: [code=python]import Tkinter as tk import time def generate(): for i in range(0,100,5): time.sleep(0.3) canvas.create_oval(200-i, 300-i, 210+i, 310+i) # needed after time.sleep canvas.update() # for testing only print i canvas.create_oval(200, 300, 210, 310, fill='red') … | |
Re: One day to learn the basics of Python. One week to get to know the modules you need. | |
Re: Hey Lardmeister, you must be pulling As in your Science/Python classes. Nice clean code. | |
Re: Food at McDonalds is pretty "ho-hum". I will go to Pizza Hut with a couple of friends later. Their new deep dish pizza is a tasty deal. | |
Re: I am working on an expert system to replace our lying and cheating political leadership with a lying and cheating computer system. :) | |
Re: We discussed that at length in thread: [url]http://www.daniweb.com/forums/thread92901.html[/url] Is that spam below the picture? | |
Re: Yes, the UK earthquake affected me! It sort of forced me to read this thread. | |
Re: Sneekula is the small part in the center of a CD player. It also can be used as a herbal substitute in Keemun Congou tea. | |
Re: Here is one example how to approach this: [code=python]""" assume your test data file (test_data.txt) looks like this 2008_06_01 07:55 24.8 83.1 2008_06_02 07:55 31.2 85.7 2008_06_03 07:55 33.4 86.1 2008_06_04 07:55 -30.8 81.6 2008_06_05 07:55 25.7 82.3 """ new_list = [] for line in file("test_data.txt"): data_list = line.split() # … | |
Re: Not too many people use the PyQt GUI toolkit, because of licensing problems. My guess is that your installation went wrong, or you misspelled something, imports are case sensitive. | |
Re: Please use the proper code tags around your code. Don't quote the whole thing or your code tags won't work. Proper code tags are [noparse][code=python][/noparse] your code here [noparse][/code][/noparse] Please format your code so it is somewhat readable. Also, since your ovals are equal, how would you know the difference? … | |
Re: Well, I have over 600 post and the proud title of "Practically a Master Poster" Just throw a bunch of "lols" in and you will be there in no time! | |
Re: [QUOTE=Ancient Dragon;544288]Dam -- I meant to vote for 100+ but hit the wrong button :)[/QUOTE]If it wasn't you, then who voted for it? Besides, if members that die of old age are never taken off the list, the average age over time will tend toward 100+ | |
Re: If you want to familarize yourself with a function, it helps to print some of the results: [code=python]# enumerating over a string or list returns the index and the element s = 'help' for ix, c in enumerate(s): print ix, c """ my result --> 0 h 1 e 2 … | |
Re: [QUOTE=jwenting;540486]no need for a conviction, block them until one can be attained (so for the duration of the investigation). It's what's done to everyone else, so why not to crackers? They're criminals, conviction or no.[/QUOTE]"Guilty unless proven innocent", what a concept. You should run for the Supreme Court. To make … | |
Re: In the name of homeland security, hand over your thumb drive! I think you have some real good points Aia! Put up a stout fight for privacy, I might visit you in jail later. :) | |
Re: Sorry about my language, but I hope she sues the crap out of that law and order jergg! | |
| |
Re: [QUOTE=jbennet;534690]OMFG OMFG OMFG CLOWN ALERT CLOWNSSSSS! I hate clowns, they are really scary!!! w00t[/QUOTE]Ronald McDonald wasn't that bad! He helped a lot of children. | |
Re: The most common Python module for PDF format files is ReportLab, for example code and download see:: [url]http://www.devshed.com/c/a/Python/Python-for-PDF-Generation/[/url] You will have to read through the ReportLab documentation to see if you can save with a password. | |
Re: The salaries of CEOs are hight to attract the best person, that makes the best decisions for the company. If the company thrives, so do the workers. There are exceptions of course. | |
Re: Please use code tags around your code so it will retain the indentations! You are also unpacking clist wrong, also write() writes a string to file, so concatinate first. | |
Re: [QUOTE=efmesch;484835]Sit down in a comfortable position, close your eyes, relax your muscles as best as you can and breathe slowly while you think of pleasant memories.[/QUOTE]I like to put my feet on the desk to accomplish that, but my boss keeps disturbing me! | |
Re: [QUOTE=The Dude;520138]I bet people will go from store to store getting 1 free pretzel after another :D (Or put on a wig,go back in.........)[/QUOTE]Maybe they will stamp your hand with permanent ink (picture of a pretzel) to avoid double dipping. | |
Re: You also have to consider how few computers use the Linus OS, sorry Linux OS. | |
Re: The manual that came with my dishwasher says to put the utensils in handle down for the best cleaning action. | |
Re: Take all the printable/allowable characters and create a random string with them. The longer the string the better your password. IMHO, the worst password is most likely "password" | |
Re: I think AD is very lucky to have his first pick be wife material. Most of us have to experience a number of girls to find the right one. I have had a small number of girlfriends so far, and have found them in our church, where they have a … | |
Re: It's on a Sunday, and my religion does not allow me partake in such spectacles and the associated sinful behaviour. | |
Re: Firstly: To preserve the all important code indentations for Python please use code tags. I will show the needed tags in reverse so they don't activate, at the end of your code add this tag (/code) at the start of your code add tag (code) or (code=python) I have somewhat … | |
Re: Looks to me like you have to eat certain foods to produce some of these. | |
Re: Yahoo just announced a major layoff of close to 1000 of its employees. Maybe that means that its search engine isn't as good as Google's? | |
Re: Very funny! There is more at: [url]http://www.daniweb.com/forums/thread77206.html[/url] | |
Re: With creative brainstorming sometime comes the feeling of accomplishment, reward enough for me. AD just makes sure that we are allowed some creativity, right? | |
Re: No other than the famous Stephen Hawking also said: "It is not clear that intelligence has any long-term survival value!" Sorry, I would not use intelligence as the reason to switch to Vista. Sounds like Vista is a girl's OS. | |
Re: Blogging is one way to spread the truth and the news. I am all for it! Yeah Bloggers! | |
Re: The 'for loop' is the standard iteration loop in Python. Here are some simple examples: [code=python]# iterate through the characters of a string for c in 'string': print c """ my result ---> s t r i n g """ # iterate through the elements of a list for n … | |
Re: [QUOTE=Naruse;520848]really lucky man...[/QUOTE]Well Narue, he most likely ended up in the hospital with facial burns. | |
Re: Well, January isn't quite over yet, so Happy 2008 to the DaniWebbers. May there be less war and more work and money. | |
Re: [QUOTE]~~ abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble ~~[/QUOTE]... and then came the Internet, where ideas come from all over the world in a fraction of a second, no need to stand on a soapbox and shout, write those … | |
| |
Re: I run DrPython165 with Python251 and wxPython28 (using binary wxPython2.8-win32-unicode-2.8.6.0-py25.exe) on a Windows Vista machine and have absolutely no problems. |
The End.