988 Posted Topics
Re: Well, I can't remember when the US was not in some kind of a war. Professional soldiers are so much better than draftees. Why draft someone that is not a soldier at heart? | |
Re: [QUOTE=woooee;570560]Just to be complete, BLT adds graphing to the TCL/Tk toolkit. Use whichever of the suggestions seems best to you. They will all work. [url]http://incrtcl.sourceforge.net/blt/[/url][/QUOTE]The only caveat, you have to program in TCL, not Python. | |
Re: I think Tkinter is written in TCL language with a Python wrapper hanging over it. If you want to write a new widget you better learn TCL. I fooled around a little with the scale widget itself and mouse events and came up with this: [code=python]# experiment with Tkinter's Scale … | |
Re: Just like in C, a += b does the same thing as a = a + b, but the code produced is more efficient. So, I think, the roughly is there for the sticklers in life. | |
Re: There is of course an indent error in your code sample. I added some comments: [code=python]# move a line down and up the display window import pygame y = 0 dir = 1 running = True width = 800 height = 600 screen = pygame.display.set_mode((width, height)) linecolor = 255, 0, … | |
Re: The most secret area I have been in was in my younger brother's room. Officially called Area Detritus. | |
Re: As an actor Picard beats Kirk. Of cousre, Kirk's role is often written more than silly. | |
Re: Leave it to M&M to come up with such a nice site! | |
Re: People that wish you a "Merry Kiss-mess" to be politically incorrect. Guys that don't open the door, cover mud puddles with their coat, or offer their seat for a lady. | |
Re: If you drive behind a diesel car that uses recycled cooking oil, the stench smells like fries. How about cars powered with ethanol? Coldn't that be a cause for more drunk drivers? Would you keep a jar of olives in the car? | |
Re: In some of my dreams I am dating some good looking fellow that forgot to take his viagra. | |
Re: [QUOTE=The Dude;549041]Very sad........[/QUOTE]I agree, sailing enthusiast should not end up in hell! | |
Re: [QUOTE=jbennet;496984]cool. Doing the fish with lemon, honey + sweet potatoes (i think its called squash or butternut in some countries?) is nice[/QUOTE]Squash (most common are zucchini, butternut, acorn, summer, spaghetti squash) is a vegetable of its own. My mother cooks up a tasty medley of sliced zucchini squash and cabbage, … | |
Re: It should be an earth shattering experience. My bet is that all debts are off! | |
Re: Honestly, few of us are mind-readers, you need to give us more information and code. | |
Re: Just a side note, you can use x**0.5 rather than math.sqrt(x) to speed things up: [code=python]import timeit stmt = "math.sqrt(123456789)" t = timeit.Timer( stmt, "import math" ) print "%s took %s microseconds/pass" % (stmt, t.timeit(1000000)) stmt = "123456789**0.5" t = timeit.Timer( stmt) print "%s took %s microseconds/pass" % (stmt, t.timeit(1000000)) … | |
Re: Ene is my first name spelled backwards, and Uran is the African name for a heavy gold ear ring that glows in the dark and can also be used for a wind chime (bflat & fsharp). | |
Re: [QUOTE=what_is_that???;545325]If i have an audio file that is in .py format how do I play it?[/QUOTE]Try to read it with an editor. If it looks like a typical Python code text file then the .py extension might be correct, otherwise it just might be a cruel joke. Anyone can take … | |
Re: #!/usr/bin/python is only needed for Linux computers. print "\n" * 100 is a crude way to clear the cmd screen. Are you sure you need this at all? Also, easygui is a subset wrapper for the Tkinter GUI toolkit. Very few people use it. I would switch to Tkinter that … | |
Re: Please use code tags with your code to preserve the indentations. Otherwise the code is very difficult to read and not too many folks will help. [noparse][code=python][/noparse] your Python code here [noparse][/code][/noparse] | |
Re: [QUOTE=jwenting;543837]it all depends on how bad the alergy is. My sister has a rather severe case, she has to be extremely careful when buying prepackaged foods as most contain milk components as filler or for other purposes (even stuff you wouldn't expect it from, like marmelade). She gets sick when … | |
Re: Nice clean code there Lardmeister. Did you switch from C# to Python? | |
Re: [QUOTE=joshSCH;529076]Uhh.. Joe has a custom user title..[/QUOTE]Man are you ever dense! You are very good in calling folks names, but in your wit and humor department the shelves are empty. | |
Re: My assumption is that the newer members joining after Dani's somewhat dated statistics are younger. | |
Re: Hey Henri, thanks for the info on Python30. | |
Re: Sometimes privacy is simply a luxury and has to suffer to protect the population as a whole. | |
Re: [QUOTE=EnderX;535449]What, hockey makes Canadians angry?[/QUOTE]Angry, if they don't win! Hockey comes up with some pretty interesting fights. | |
Re: Keep geeking in the Geek's Lounge, and you will hit 4,800 posts real soon. You could even LOL your way to reach jbennets 9,900 post count. | |
Re: Tax cuts could force all those tax lawyers to take up a "real job"? | |
Re: [QUOTE=ZZucker;522702]... I must say this, being a young person and degradingly being called a "kid" ruffles my feathers! It is not very pleasant![/QUOTE]Simmer down Z, whoever called you a "kid" is most like too old to remember those days. Laugh it off! It helps to unstress, and if you are … | |
![]() | Re: Yeah, Valentine's Day is real nice! Friends let you now that they like you! Just a card and a pink lady at the bar will do. |
Re: [QUOTE=zandiago;533444]Good day boys & girls. I want your thought on the mass media revealing too much information? By that I mean, for example in the US, since 9/11, there has been many thoughts about terrorist could strike the USA again. some of those methods have been spoken about on TV. … | |
Re: Those darn scientists anyway! I guess there is always a temptation to play God. | |
Re: Never mind your waistline Z, it's free so eat it! Dance the cals off later. | |
| |
Re: [QUOTE=The Dude;520153]Heh,its a bit too bright in my room i guess and the screen is dark :D[/QUOTE]I agree, the color selection is a little poor. | |
Re: [QUOTE=jbennet;523730]lots of companies like IBM, Orcale want Fortran programmers with UNIX experience to write mainfframe code and lots of defence companies like BAE want ADA programmers with UNIX experience for aircraft control etc...[/QUOTE]Wonder what the American Dental Association (ADA) recommends for a programming language and OS, could it be Ada?. | |
Re: If you put your knives in handle down, then the sharp point of the knife will rub against the basket material during the dishwasher action. If the basket is metal, the knife will get dull. If the basket is plastic, the knife will damage it. Wow, this is an intellectually … | |
Re: Sorry, I don't have Linux so I can't test it out, but try to build your command string before using it as an argument: [code=python]val="/usr1/test/hello/ " command_str = 'ls -lrt $%s | grep "LATEST" | cut -d ">" -f2 | tr -d " "' % val # test it print … | |
Re: I think it has been said here numerous times, but the module graphics.py is a subset wrapper for Tkinter from a older book. Not too many folks use it, so help will be difficult to get. |
The End.