988 Posted Topics

Member Avatar for zandiago
Member Avatar for jon.kiparsky
2
981
Member Avatar for Sesshokotsu

There is something similar to that project on DaniWeb's C code snippets: [url]http://www.daniweb.com/code/snippet381.html[/url] Sort of the next step to this project

Member Avatar for soulcandra44
0
172
Member Avatar for terence193

A husband and wife went to the marriage counselor. When asked what the problem was, the wife went into a passionate, painful tirade listing every problem they ever had in the 20 years of marriage. She went on and on and on: neglect, lack of intimacy, emptiness, loneliness, feeling unloved …

Member Avatar for vegaseat
0
885
Member Avatar for WASDted

Does Mr. Forbes think that online magazines will replace printed magazines in the next ten years.

Member Avatar for ithelp
2
280
Member Avatar for lllllIllIlllI

Well, if you get Eric to work, let the rest of us know what you did.

Member Avatar for Tommymac501
0
821
Member Avatar for Ancient Dragon
Member Avatar for Stefano Mtangoo

Vpython and wxPython each use their own event loops, so it will not be easy and very smooth.

Member Avatar for isabel puchoc
0
432
Member Avatar for NubKnacker

A lot of schools have no money for their hand-me-down computers. Turbo2.0 is given away free. Still better than teaching Mbasic.

Member Avatar for jemy
0
342
Member Avatar for vmanes
Member Avatar for cwarn23
Member Avatar for GrimJack
1
453
Member Avatar for Ancient Dragon

Just plain old smear and hate. This kind of stuff turns the USA into a DSA.

Member Avatar for johnnybgood
0
450
Member Avatar for wraph

The most optimized execution speed can only be achieved with assembly code. However, Microsoft's 20,000 programmers would now be half way through the fist version of Windows. You have to balance execution and development speed to make a little money in the trade.

Member Avatar for jwenting
0
635
Member Avatar for atsuko

There is a problem with count() as shown below: [code=python]string = "hi" # test text text = "hi, I am a history buff with a hideous hidrosis history" print "Number of '" + string + "' in your file is:", text.count("hi") """ my result --> Number of 'hi' in your …

Member Avatar for TrustyTony
0
706
Member Avatar for boyz

[QUOTE=jwenting;476848]Wikipedia is wrong. A JDK is a full SDK, so it's an implementation of the concept of "SDK" rather than a subset of it.[/QUOTE]The wikipedia is selfcorrecting, give it a try.

Member Avatar for kvprajapati
0
484
Member Avatar for jephthah
Member Avatar for Rashakil Fol

[QUOTE=maydhyam;1210448]saw it in 3d...great graphics...lame plot though...just my thought on it...[/QUOTE]I agree, but then this is Hollywood, entertainment makes the money, a plot might happen.

Member Avatar for Diamonddrake
1
323
Member Avatar for root

Well, better late than ever! Congratulations and good luck [B]root[/B]

Member Avatar for vegaseat
0
95
Member Avatar for Ene Uran

This is my first experience with Python's Tkinter GUI. I want to write a program where the result of an interim calculation is displayed on a label. Later in the program I want to use this result in another calculation by simply clicking on the label. This is what I …

Member Avatar for vegaseat
0
3K
Member Avatar for Dave Sinkula

[QUOTE=jwenting;504682]Strange isn't it how leftists find calling Shrillary Shrillary offensive, disgusting even, but when they call President Bush "Dubya" or worse they think that's hillarious and quite normal. Stranger still how noone complains when they do that, right thinking people instead shrugging it off.[/QUOTE]You still keep calling folks that disagree …

Member Avatar for jephthah
0
6K
Member Avatar for stabzagg

Here is a typical example of multiple radiobuttons using the Tkinter GUI toolkit: [code]# exploring multiple Tkinter radio buttons # radio buttons only allow one item to be selected/checked # ene try: # Python2 import Tkinter as tk except ImportError: # Python3 import tkinter as tk def rb_selected(): # show …

Member Avatar for stabzagg
0
308
Member Avatar for dbphydb

Change [B]branch = "%s" % lines[0][1].strip(': ')[/B] to [B]branch = "%s" % lines[0][1].strip()[/B] to get rid of the newline character

Member Avatar for dbphydb
0
208
Member Avatar for ruby.mein
Member Avatar for Ene Uran
-6
135
Member Avatar for Geneva Dirt
Member Avatar for Ene Uran
0
136
Member Avatar for pythonNerd159
Member Avatar for jpl1993

Python has a pretty fast algorithm built-in called an adaptive merge sort. Here is an example: [code]# sort a list of names without changing the original list # uses the high speed sorting algorithm built-into Python name_list1 = ['Frank', 'Mark', 'Hank', 'Zoe', 'Bob', 'Carl', 'Al'] name_list2 = sorted(name_list1) print "Original:" …

Member Avatar for lllllIllIlllI
0
141
Member Avatar for ktsangop

Directed at ktsangop, Are you writing your program with an editor, save it as a .py file and then run it, or are you simply running it directly from the Python interpretive shell? If you run it from the shell, we can argue till the cows lay eggs.

Member Avatar for ktsangop
0
268
Member Avatar for TrustyTony
Member Avatar for ChargrO

I would say your indentations are a little screwy. Indentations are very important for Python to designate statement blocks.

Member Avatar for Ene Uran
0
1K
Member Avatar for bbman

Please read the note on homework help. We only help those who show at least some coding effort.

Member Avatar for Ene Uran
-1
117
Member Avatar for Qwazil

In essence this would be the search of a 'subset' in a set: [code]# search for a subset in a set (Python3 syntax) set1 = {'red','green','blue','black','orange','white'} set2 = {'black', 'green'} print('These are the colors common to set1 and set2:') print(set1 & set2) """my result ==> {'green', 'black'} """ [/code]

Member Avatar for Ene Uran
0
62
Member Avatar for morteza_ipo

The module psyco compiles to 386 machine code rather than byte code. It speeds things up a little for the Python interpreter. To my knowledge two complete OS have been written using mostly Python, both of them are less than ideal and are used for research purposes only. Python is …

Member Avatar for Ene Uran
0
103
Member Avatar for BROKNDEATH

On question four I can say that most mistakes in our organization are now made on the computer.

Member Avatar for Ene Uran
0
103
Member Avatar for cwarn23
Member Avatar for The Dude

Wow, these guys must have searched all the junkyards of the nation. In our neighborhood you wouldn't be even allowed to throw that stuff away!

Member Avatar for Ene Uran
0
45
Member Avatar for WaltP

The only way to serve water correctly to deserving guests! You may want to add a drop of crude on top and serve it BP style!

Member Avatar for Ene Uran
1
164
Member Avatar for vmanes
Member Avatar for sneekula

My humble contribution using a list comprehension: [code]# create a unique sorted list of all upper case letters in text text = "This text has Upper and Lower Case Letters" unique_list = [] [unique_list.append(c) for c in text if c.isupper() and c not in unique_list] print sorted(unique_list) # ['C', 'L', …

Member Avatar for twekberg
0
324
Member Avatar for Mahen
Member Avatar for peter_budo
0
280
Member Avatar for bharatk

If you want to use drag and drop to design your widget layout then the PyQT GUI toolkit comes with QTdesigner, see: [url]http://www.daniweb.com/forums/post1108430.html#post1108430[/url] The wxPython GUI toolkit can use BOA constructor, see: [url]http://www.daniweb.com/forums/post400296.html#post400296[/url] Another nice drag and drop utility for wxPython is wxGlade.

Member Avatar for macroasm
0
398
Member Avatar for aceswildab1
Member Avatar for lrh9

Since a lot of wars are fought because of religious beliefs, it makes sense to apply a little religion to the weapons used.

Member Avatar for jwenting
1
768
Member Avatar for Noliving
Member Avatar for lyndon enero
0
91
Member Avatar for Hawkeye Python

Really not very complicated, just follow this sequence of actions: [code]""" assumes that you are using Python31 installed on the c drive create a directory c:/Python31/MyModules then save this file in that directory as __init__.py basically an code-empty file with an optional explanation it will make MyModules a package """ …

Member Avatar for Ene Uran
0
96
Member Avatar for Mushy-pea

[QUOTE=vegaseat;1119398]Wealth created by speculation can evaporate quickly. ...[/QUOTE]So does taxpayers money that is wasted on those speculators.

Member Avatar for jbennet
0
288
Member Avatar for Nick Evan

That's why you should buy underwear that's yellow in front and brown in the back. :) Anyway, yesterday I enjoyed some cherry ice cream and it had a part of a pit in it, enough to chip my tooth and now I have to spend some time at the dentist.

Member Avatar for apegram
0
294
Member Avatar for chankya
Member Avatar for sammyboy289

Shorten the list and add a temporary print for testing. See what that will do for you: [code]# shorten list for test a = range(1, 10) b = [] d = 0 for n in a: while n != 1: if n % 2 == 0: b.append(n) n = n/2 …

Member Avatar for sammyboy289
0
95
Member Avatar for vsagarmb

[QUOTE=vsagarmb;1121012]I have only python 2.5 installed and i can find PIL in the Pythons installation directory. I use a IDE called PyScripter. When i run the program from the IDE it works fine. But it throws error when i run it from the command line.[/QUOTE]What do you mean with [B]run …

Member Avatar for Stefano Mtangoo
0
293
Member Avatar for vmanes
Member Avatar for Salem

The folks at the NSA will pick your super secret password in less than a second. So, pick something simple you can easily type and remember in the hope that it is safe from the boss or your underage sister.

Member Avatar for PedroStephano
0
707

The End.