Search Results

Showing results 1 to 40 of 42
Search took 0.01 seconds.
Search: Posts Made By: tondeuse34
Forum: Python Apr 13th, 2009
Replies: 3
Solved: Odd Error
Views: 340
Posted By tondeuse34
Hey guys, i just re-installed python and began writing a script, when i go to run it a syntax error appears. The syntax error allways points to the quotes i use, meaning something like print "Hello"...
Forum: Python Jan 26th, 2009
Replies: 3
Views: 334
Posted By tondeuse34
I would be delighted to try out your webpage class, just PM it to me whenever you want, thanks. Clipper34.
Forum: Python Jan 26th, 2009
Replies: 3
Views: 334
Posted By tondeuse34
Hey guys, import sgmllib

class MyParser(sgmllib.SGMLParser):
def parse(self, s):
"Parse the given string 's'."
self.feed(s)
self.close()

def __init__(self,...
Forum: Shell Scripting Jan 24th, 2009
Replies: 1
Views: 659
Posted By tondeuse34
Hey guys, i'm having some trouble using wget. What i'm trying do is log into a site, once its logged is to go to a certain link. And once it is there download all the files on the page, but check...
Forum: Python May 27th, 2008
Replies: 1
Solved: Network help
Views: 674
Posted By tondeuse34
Hey guys, recently i started with socket programming in python and still doing it. And i decided to do a project, its a text based GUI with different options that are related to Networks, but ive had...
Forum: Python May 25th, 2008
Replies: 6
Solved: class questions
Views: 712
Posted By tondeuse34
Well basically you have a class called fruitcake, and (object) is the varible you defined. So object may be like this: object = rectangle(100,45) that you defined at the beginning of the program. So...
Forum: Python May 25th, 2008
Replies: 1
Views: 402
Posted By tondeuse34
Well, i don't see any source code to look at or edit when i downloaded it and opened it up with Winrar. But thats reverse engineering, and i suggest you learn some python to assess the glitches in...
Forum: Python May 25th, 2008
Replies: 5
Views: 619
Posted By tondeuse34
Well obviously not from a class, but from code basically from what i see. And i'll try things people have posted and learn from the syntax also see how it works what i can do with it and try to place...
Forum: Python May 24th, 2008
Replies: 1
Solved: If and Else
Views: 432
Posted By tondeuse34
Hey guys again, but i got another question. With this code here: if choice == 'help' or '/help':
print "Test" what if you entered anything else besides '/help' or 'help' and you have defined...
Forum: Python May 23rd, 2008
Replies: 5
Views: 619
Posted By tondeuse34
well first off, it's suspose to be a TCP/IP Socket. So thats my mistake on my part if when i created two different types of sockets. and it's a server. Thanks
Forum: Python May 22nd, 2008
Replies: 5
Views: 619
Posted By tondeuse34
Hi guys, i'm new to sockets and find it pretty fun. But i got a question, in my code here: import sys, socket

import socket, sys
dest = ('<broadcast>', 51423)

s = socket.socket(socket.AF_INET,...
Forum: Python May 20th, 2008
Replies: 6
Solved: Quick question
Views: 599
Posted By tondeuse34
So basically all you have to is define your function in this case which is MyFunction and once you declare that, you can call on that function anywheres in the script including input from the...
Forum: Python May 19th, 2008
Replies: 6
Solved: Quick question
Views: 599
Posted By tondeuse34
yeah sorta but what if it is more lines of code with indentions for example: if choice == 1:
print "\nReading..."
myfile = open('myfile.txt', 'r').read()
print "\n",myfile
Forum: Python May 19th, 2008
Replies: 6
Solved: Quick question
Views: 599
Posted By tondeuse34
Hey guys, i got another question. say if you want to only write a few lines of code that can be called on at any time the while the script is running, i'm assuming its the pickle function or...
Forum: Python May 18th, 2008
Replies: 4
Views: 619
Posted By tondeuse34
yeah it was working for me but i must of done something in my code think you could take a look?print """
***********************************************************
*|----------| - - ...
Forum: Python May 18th, 2008
Replies: 4
Views: 619
Posted By tondeuse34
sorry didn't notice that when i posted it heres it again with correct indentations:
myfile = open('myfile.txt', 'r').read()
print "\n",myfile
Forum: Python May 17th, 2008
Replies: 4
Views: 619
Posted By tondeuse34
Hey guys, lately i've been having some trouble with file I/O but usually i don't heres an example of reading a file: print "\nReading..."
myfile = open('myfile.txt', 'r').read()...
Forum: Python May 17th, 2008
Replies: 4
Views: 583
Posted By tondeuse34
also, another quick question why does it print one thing 3 times?
Forum: Python May 17th, 2008
Replies: 4
Views: 583
Posted By tondeuse34
Thanks guys for answering my question :)
Forum: Python May 16th, 2008
Replies: 4
Views: 583
Posted By tondeuse34
Hey guys, I've came across problem and wondering say if you have a 2 lists called user_list and pass_list and you have a prompt for username and password. Instead of 1 user name and password how...
Forum: Python May 16th, 2008
Replies: 4
Views: 494
Posted By tondeuse34
thanks for answering my question your code works perfect :)
Forum: Python May 15th, 2008
Replies: 4
Views: 494
Posted By tondeuse34
sort of, but for example if you had a open notepad it would print "Hello World!" onto that notepad
Forum: Python May 15th, 2008
Replies: 4
Views: 494
Posted By tondeuse34
Is there a function out their in python that you will declare a target i.e. a text box on another open window, and it would print text to that screen? Thanks
Forum: Python May 14th, 2008
Replies: 3
Views: 658
Posted By tondeuse34
Thanks Cap.Micro you've just gave me tons of ideas from that code :) and i've never seen the use of globals, do you think you can explain briefly?
Forum: Python May 14th, 2008
Replies: 3
Views: 658
Posted By tondeuse34
Hey guys, I've started using Tkinter now and I've came across a problem...Here in the code below i just want a drop box style menu to appear and when i click that option, theres more options. When i...
Forum: Python May 13th, 2008
Replies: 4
Views: 1,418
Posted By tondeuse34
thanks answered my question
Forum: Python May 13th, 2008
Replies: 4
Views: 1,418
Posted By tondeuse34
also, how would you use Tkinter with two buttons for example to save a .txt document all you have to do is click that button and it will make a prompt for the filename and save it. Thanks
Forum: Python May 11th, 2008
Replies: 6
Views: 545
Posted By tondeuse34
no problem :)
Forum: Python May 11th, 2008
Replies: 6
Views: 545
Posted By tondeuse34
for your first question why elif? elif is just a shortened way of saying else if when the statement fails to be true, elif will do what is under IF the conditions are met. And for your second...
Forum: Python May 11th, 2008
Replies: 6
Views: 545
Posted By tondeuse34
Here you go jascase i fixed the problem, i'm not good at explaining things but in the line of the code that didn't work where you asked for input for the 2 numbers. number=int(raw_input("what do u...
Forum: Python May 10th, 2008
Replies: 4
Views: 1,418
Posted By tondeuse34
Hey guys, is it possible to simulate a mouse click using x and y co-ordinates. And also could you have user input of a certain co-ordinate and it would click that specified co-ordinate? thanks.
Forum: C++ May 10th, 2008
Replies: 12
Views: 6,188
Posted By tondeuse34
talk about some confusing stuff, python has spoiled me lol
Forum: C++ May 9th, 2008
Replies: 12
Views: 6,188
Posted By tondeuse34
Hey guys, i have done C++ before but gave up on it :P. But i've came back to it and i'm wondering what is a good way to simulate a left and right click? i guess you would start with this: #include...
Forum: Python May 4th, 2008
Replies: 4
Views: 1,874
Posted By tondeuse34
Thanks MitkOK
Forum: Python May 4th, 2008
Replies: 4
Views: 1,874
Posted By tondeuse34
And one more question, here in this code: print "Your choices are: "
print "1) Play"
choice = raw_input("Choose your option(1) ")

loop = 1

if choice == '1':
dir_list = ['N','S','E','W']
...
Forum: Python May 4th, 2008
Replies: 4
Views: 1,874
Posted By tondeuse34
Hey guys again, well i got another question. When ever i have an if statement asking for input and i try to use an elif statement and run the code, it say's 'elif' is an syntax error. Is it an...
Forum: Python May 3rd, 2008
Replies: 6
Views: 711
Posted By tondeuse34
Thanks ZZucker, you fixed my problem :)
Forum: Python May 3rd, 2008
Replies: 6
Views: 711
Posted By tondeuse34
Thanks for the help vegaseat now i know i need to practice Python more...but one more thing. When ever i put this in my elif statement elif direction == '2': The program stops from their. Any...
Forum: Python May 3rd, 2008
Replies: 6
Views: 711
Posted By tondeuse34
Ok thanks, and one thing I'm trying to make a text RPG and sadly, i cant get it get past the menu it jut stops..think you can help?print "Welcome to Adventure!"
print " "
print "Your options are: "...
Forum: Python May 2nd, 2008
Replies: 6
Views: 711
Posted By tondeuse34
Hey guys....I've been doing Python for probably more than 4 months and i have gotten to the point saying to myself "What should i make?" and "How would i do that?" i just don't know where to go know...
Showing results 1 to 40 of 42

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC