988 Posted Topics
Re: 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 | |
Re: 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 … | |
Re: Does Mr. Forbes think that online magazines will replace printed magazines in the next ten years. | |
Re: Well, if you get Eric to work, let the rest of us know what you did. | |
Re: Vpython and wxPython each use their own event loops, so it will not be easy and very smooth. | |
Re: A lot of schools have no money for their hand-me-down computers. Turbo2.0 is given away free. Still better than teaching Mbasic. | |
Re: [B]Good thoughts in Garbage out![/B] | |
Re: Just plain old smear and hate. This kind of stuff turns the USA into a DSA. | |
Re: 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. | |
Re: 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 … | |
Re: [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. | |
Re: [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. | |
| |
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 … | |
Re: [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 … | |
Re: 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 … | |
Re: 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 | |
Re: I trained there and it didn't stop my drinking problem! | |
Re: Where does [B][COLOR="Red"]Red Tape[/COLOR][/B] come from? | |
Re: Are you still using tabs for indentations? | |
Re: 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:" … | |
Re: 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. | |
![]() | Re: I would say your indentations are a little screwy. Indentations are very important for Python to designate statement blocks. |
Re: Please read the note on homework help. We only help those who show at least some coding effort. | |
Re: 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] | |
Re: 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 … | |
Re: On question four I can say that most mistakes in our organization are now made on the computer. | |
Re: 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! | |
Re: 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! | |
Re: 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', … | |
Re: Donate it to your church and use it like a in your tax deductions. | |
Re: 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. | |
Re: Well, do you have experience with SAP? | |
Re: Since a lot of wars are fought because of religious beliefs, it makes sense to apply a little religion to the weapons used. | |
Re: Usually homework like that asks for change with the least amount of coins. | |
Re: 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 """ … | |
Re: [QUOTE=vegaseat;1119398]Wealth created by speculation can evaporate quickly. ...[/QUOTE]So does taxpayers money that is wasted on those speculators. | |
Re: 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. | |
Re: 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 … | |
Re: [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 … | |
Re: My favorite: "Does the doe do what does do? | |
Re: 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. |
The End.