904 Posted Topics

Member Avatar for scru

Why waste a perfectly fine computer on scum like that? I say heads off with a rather dull guillotine!

Member Avatar for bumsfeld
0
182
Member Avatar for zandiago
Re: Ufo

[QUOTE=jwenting;542941]Take me to your lizzard![/QUOTE]Very funny! Could be: "Where is the head computer?"

Member Avatar for R0bb0b
0
487
Member Avatar for ~s.o.s~

Here is the competition: [QUOTE]NOTICE: PLEASE NOTICE!!!!! You may have noticed the increased amount of notices for you to notice. And, we have noticed that some of our notices have not been noticed. This is very noticeable. It has been noticed that the responses to the notices have been noticeably …

Member Avatar for sneekula
3
427
Member Avatar for Dave Sinkula

On Google map the whole place is simply blank! Why is this place so important?

Member Avatar for sneekula
3
300
Member Avatar for db_ozbecool

Simply use this: [code=python] # list all the modules Python currently knows about ... help("modules") [/code]

Member Avatar for woooee
0
163
Member Avatar for fordprefect

Thanks for answer, for complete pyhthon n00b , this is pretty complex coding!!!

Member Avatar for rajatdudeja
0
229
Member Avatar for sjvr767

At first blush i would say this might do: [code=python]# compare these two list set and convert # w_b into [0.5, 0, 0.5, 0] a = ['a', 'b', 'c', 'd'] w_a = [0.25, 0.25, 0.25, 0.25] b = ['a', 'c'] w_b = [0.5, 0.5] for ix, aa in enumerate(a): if …

Member Avatar for sjvr767
0
95
Member Avatar for tejas.dunk
Member Avatar for Dave Sinkula
Member Avatar for leegeorg07

Just taking hasty look, I would say no because py2app needs to include some files specific to the MAC OS. You don't have those on your Windows PC.

Member Avatar for Ene Uran
0
79
Member Avatar for 5akeytech

For small country France did pretty well! Would have done better, but the Chinese food is not rich enough!

Member Avatar for bumsfeld
0
41
Member Avatar for Ene Uran

A wonderful achievement Ene! The drinks are on the house! --- 966 for me right now ---

Member Avatar for mackone
2
108
Member Avatar for Lardmeister

Like to see tennis, everything else is too boring! So what if they can swim, walk, run, jump, throw, bike, spit, row the distance of 50 meters, 100 meters, 200 meters, 500 meters, 1000 meters, 10000 meters and so on. Also, what is this thing separating the boys from the …

Member Avatar for Ene Uran
0
162
Member Avatar for The Dude

For me it would be the "Remote Control Spitfire Mk IIB" so I could bomb some of the folks in my neighborhood, that I suspect of producing WMDs, into long lasting submission.

Member Avatar for ZZucker
0
147
Member Avatar for ZZucker

[QUOTE=R0bb0b;668437]Yes, all the stupid laws that are passed and little by little everything is taken away. Can't smoke here, can't drink there, can't cook your burgers like that, this is the meat section and that section is for vegetarians only, your meat is rare so you need to eat outside. …

Member Avatar for R0bb0b
0
305
Member Avatar for Jadellll

Proof that [::-1] works for spelling string in reverse: [code=python]s1 = "racecar" s2 = "kayak" print s1, s1[::-1] print s2, s2[::-1] [/code] :)

Member Avatar for Aia
0
140
Member Avatar for Salem
Member Avatar for Jadellll

Functions sort() and sorted() reside in the core of the Python interpreter which is written in C and compiled. On Windows the Python core is for instance in the dynamic link library called python25.dll which the Python installer put into directory C:\WINDOWS\system32 Here is example of the rather slow but …

Member Avatar for Jadellll
0
107
Member Avatar for vmanes

I eat good helping of quiche Lorraine every day, it keeps me from programming.

Member Avatar for bumsfeld
3
1K
Member Avatar for Scuppery
Member Avatar for abetageek
-2
275
Member Avatar for sneekula

Congratulations Snee! God willing, I should reach this important milestone by year's end.

Member Avatar for sittas87
0
52
Member Avatar for Ancient Dragon

I agree, Other's avatars are pretty artistic in their own right. The en brosse styling is cool. Colour discretion could be one bit more together.

Member Avatar for peter_budo
0
217
Member Avatar for loken

If at first you don't succeed, destroy all evidence that you tried.

Member Avatar for techbound
0
177
Member Avatar for Ancient Dragon
Member Avatar for Ene Uran
0
144
Member Avatar for docaholic

This Python code snippet will show you how to do this: [url]http://www.daniweb.com/code/snippet390.html[/url]

Member Avatar for docaholic
0
160
Member Avatar for Matt Tacular

If you know in which windows dll the function SetCursorPos(x, y) is situated, then you can use module ctypes to get access to it.

Member Avatar for mchen10
0
474
Member Avatar for Mazille

Once k gets past the number of available elements in your list you will get an IndexError. You can put in series of if statements making sure that k does not exceed the length of your list, or simply trap the error to break out of the while loop: [code=python]list2 …

Member Avatar for Mazille
0
1K
Member Avatar for Fuse

It is only a duck if it acts, looks and sounds like one. Processed duck is not a duck.

Member Avatar for paddy3118
0
138
Member Avatar for joshmo
Member Avatar for 0named
0
355
Member Avatar for moe3ius

Paint.NET (good features and you pick the price) Open Office (beats MS Office new and old, donate if you like it) wrar (beats winzip, pay if you like it)

Member Avatar for sreein1986
0
192
Member Avatar for darkMatter2008

If MyClass1.py is in the working directory, you shouldn't need to worry, since the first entry in PYTHONPATH is the present directory. Your problem is the import MyClass1: Python now looks for the file MyClass1:.py and of course can't find it. Want to take a look at PYTHONPATH? Here it …

Member Avatar for bumsfeld
0
91
Member Avatar for darkMatter2008

The way you are importing to need to use Object1.Object1.printDamnIT() to give the namespace too.

Member Avatar for darkMatter2008
0
101
Member Avatar for lllllIllIlllI

I think the Pythonic approach is the use of powerful, optimized modules. So yeah, wxPython uses powerful, optimized widgets. Python has clearly borrowed the best of several earlier languages.

Member Avatar for lllllIllIlllI
0
549
Member Avatar for i_saw_some

Only the class instance is pickled, the class structure needs to be coded in the new program again: [code=python]import pickle # this class structure also has to be coded in another # program, if you want to load the pickle file there class authorObj(): class authors(): pass q = authorObj() …

Member Avatar for Ene Uran
0
116
Member Avatar for budstar

Change [code]while [(t1.arm==0) or (t2.arm==0)]: [/code]to [code]while (t1.arm > 0) or (t2.arm > 0): [/code]

Member Avatar for bumsfeld
0
101
Member Avatar for ABSOR

The Python interpreter is used for simple stuff, mostly one liners. You have to press the Enter key after every line you write, so the interpreter display would look something like this: [code=python]>>> def add(a, b): ... return a + b ... >>> add(1, 3) 4 >>> [/code]Ugly stuff to …

Member Avatar for ABSOR
0
94
Member Avatar for dangermini

Write your major algorithms and test them thoroughly. Now design the GUI and bring in the algorithms. If you are familiar with QT use PyQt, otherwise you better start with the more popular wxPython GUI toolkit. You can get drag and drop frame builder for wxPython called Boa Constructor. Using …

Member Avatar for dangermini
0
144
Member Avatar for preyan

What is your operating system? Did you use binary installer package? For instance, in your C:\Python25\Lib\site-packages\pygame directory you should find SDL_ttf.dll for fonts and SDL_mixer.dll for sound and video. If you don't have those, your installation went bad.

Member Avatar for preyan
0
83
Member Avatar for majestic0110

Running out of integer space in series of scientific calculations in C. The results get really goofy at times without any warning, depending on the data input.

Member Avatar for twomers
0
137
Member Avatar for Kabooom

To avoid the flicker, use .bmp file for your button image to reduce the palette problem (.jpg files bring in too many colors).

Member Avatar for Kabooom
0
300
Member Avatar for biggz

Here is example how you could approach this project: [code=python]# exploring recursion def average(qq=[]): """ using empty list as default will make the list static recursion forms its own loop, break out with return """ try: x = float(raw_input("Enter number (q to quit): ")) qq.append(x) print "data list =", qq …

Member Avatar for bumsfeld
0
99
Member Avatar for heshan

You need to get involved in parsing, here is example: [code=python]data = '''\ "returns=int", "operationName=doComplexStuff", var1="integer", var2="(a="integer", b="integer")", var3="(a="string", b="integer")" ''' q = data.split(',') m = [] t = "" con = False for k in range(len(q)): s = q[k].strip() # parse for () pairs and concatenate # before appending …

Member Avatar for bumsfeld
0
142
Member Avatar for lllllIllIlllI

[QUOTE=paulthom12345;613806]HI I was having a look into classes and i noticed i saw a lot of things like [code] class fruitcake(object): pass [/code] my question is what is the point of the "object" being in the class arguments as it is a Built In Function and i couldn't work out …

Member Avatar for bvdet
0
106
Member Avatar for lllllIllIlllI

Python also has HTMLParser module that can help you muchly: [code=python]# extract a specified text from web page HTML source code import urllib2 import HTMLParser import cStringIO # acts like file in memory class HTML2Text(HTMLParser.HTMLParser): """ extract text from HTML code basically using inherited class HTMLParser and some additional custom …

Member Avatar for bumsfeld
0
106
Member Avatar for Kabooom

Some editors like DrPython, UliPad, PyScripter, IDLE have internal output window that will stay open without the use of console wait line like raw_input("Press <Enter> to exit.")

Member Avatar for Kabooom
0
3K
Member Avatar for sanoski

There are many icon libraries on the internet, for instance: [url]http://www.aha-soft.com/iconlibs.htm[/url] They have a fair number of free ones to download.

Member Avatar for bumsfeld
0
93
Member Avatar for Salem

Anyone know good drug that fights senility? One of the presidential candidates is interested in cutting back his senior moments.

Member Avatar for bumsfeld
0
141
Member Avatar for Praymus

Actually Snee made mistake in his code. Do not write your additional code in the __init__ctrls() method, boa tells you not to edit this part. If you do, the Frame Designer frowns on it, if you want to use it later to add additional widgets. So in the frame designer …

Member Avatar for bumsfeld
0
229
Member Avatar for GrimJack
Member Avatar for sneekula
0
132
Member Avatar for mattyd

Maybe I should start selling tickets to heaven. I think there are enough fools who would buy one.

Member Avatar for ~s.o.s~
3
10K

The End.