- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 6
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
13 Posted Topics
Re: Where did this quote come from as it is virtually impossible that Lucifer congratulated himself, as his true mission could only partially succeed by definition. Lucifer (lux, light bringer) is erroneously associated with Satan. Lucifer voluntarily cast him/her/it self out of heaven to bring light to those in the lower … | |
Re: Put something in the listbox to scroll import tkinter def test_callback(event=None): listbox.insert(tkinter.END, "new_item #1") listbox.insert(tkinter.END, "new_item #2") listbox.update() top = tkinter.Tk() top.geometry( "100x100+10+10" ) top.minsize( 200, 200 ) listbox = tkinter.Listbox( top, height=6, width=20, font=('Fixed', 14), foreground='blue' ) scrolly = tkinter.Scrollbar( top, command=listbox.yview ) listbox.configure(yscrollcommand=scrolly.set) scrollx = tkinter.Scrollbar( top, orient=tkinter.HORIZONTAL, … | |
| |
Re: > Pi is the circumference of a circle whose diameter is 1, and is the first letter of the Greek word perimeter." > > "will post unusual or little known facts here", what Pi is, is known pretty widely, even if you don't know how to apply it, who invented … | |
Re: I don't care about no stinkin' down vote. I have 10 email addresses. I'll cancel your single puny down vote and raise you 9 up votes. | |
Re: [QUOTE=;][/QUOTE] Post a new question in the Python forum if you want, but [QUOTE]Does anyone know how to set styles for Php codes[/QUOTE][QUOTE]how to set all StyleSetSpec for php[/QUOTE]implies PHP. Do you meant you are writing something like an IDE and want to know how to highlight certain PHP keywords? | |
Re: [QUOTE=;][/QUOTE] Why not just do something like x = 12.30 x_str = "%5.2f" % (x+0.004) | |
Re: [QUOTE=;][/QUOTE] [QUOTE]File "C:\Python27\Thropian's games\bouncing ball.py", line 48, in Bounce canvas.delete(ball) File "C:\Python27\lib\lib-tk\Tkinter.py", line 2223, in delete self.tk.call((self._w, 'delete') + args) TclError: invalid command name ".18725904.18725744" [/Quote]Your error message says otherwise. The program is difficult to follow with functions that are not members of the class indented another level past __init__, … | |
Re: There are literally hundreds of palindrome examples on the web, most using "standard" methods, and some of which I have posted myself. [URL=http://www.daniweb.com/code/snippet216787.html]Solutions using recursion[/URL] are posted in [URL=https://encrypted.google.com/search?q=site%3Ahttp%3A%2F%2Fwww.daniweb.com+python+palindrome&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a]many places on Daniweb[/URL] as well, for anyone who looks. I am not going to reward the lazy. | |
Re: [QUOTE]but the major while loop which begins at while (z==0):, doesn't run through a second time.[/QUOTE]Look for any lines of code that change "z", which is the only way to exit other than a break statement. Also, what happens if someone enters an "X" or any letter other than "N". | |
Re: [QUOTE=;][/QUOTE] Start with code to draw a line. Next add code to calculate the angle necessary to draw a star with a given number of points. A 5 pointed star would have 10 lines and the angle would be 72 degrees for example. You would then draw a line of … | |
Re: Add a print statement to see what is going on.[CODE] #assume this is the list: list1 = ['a', 'b', 'c', 'd', 'e', 'f', 'g'] def iter_list(a): for s in a: print "testing", s return s #here it is when it runs: print iter_list(list1) a [/CODE] | |
Re: This is the best way [url]http://lmgtfy.com/?q=python+string+split[/url] |
The End.