15,190 Topics

Member Avatar for
Member Avatar for Your_mum

Hi, I am pretty new to python and I have a really noobish question: What does %s mean

Member Avatar for Your_mum
0
89
Member Avatar for BigTurtle

I'm trying to learn wxPython. Unfortunately when I came to China in Jan I had to leave the nice wxPython book in Canada because it was too heavy for my suitcase. So I humbly ask you to bear with my ignorance. As practice (and because I have a practical use …

Member Avatar for BigTurtle
0
945
Member Avatar for tomtetlaw
Member Avatar for tomtetlaw
-1
92
Member Avatar for pymatio

I have the following files: [CODE] # add.py #!/usr/bin/env python import os import Cookie import hashlib import MySQLdb import cgi import cgitb; cgitb.enable() def showform(): reshtml = '''Content-Type: text/html\n <html> <body> <form action='add.py' method='post'> Name: <input type=text name=name size = 15><br> URL : <input type=text name=url size=30><br> <input type=submit value="Add"></form> …

Member Avatar for jlm699
0
72
Member Avatar for leegeorg07

Hi I was asking around for ideas for programs and I was challenged to make a browser, but I have no idea how to do this, do any exist currently? and how could I do it please?

Member Avatar for leegeorg07
0
78
Member Avatar for sravan953

Hey guys, I have some code here which checks the last three characters in the list: [CODE]site_list= ['C', ':', '\', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 's', ' ', 'a', 'n', 'd', ' ', 'S', 'e', 't', 't', 'i', 'n', 'g', 's', '\', 'S', 'r', 'a', 'v', 'a', …

Member Avatar for sravan953
0
114
Member Avatar for tomtetlaw

Whenever I run this code, it always returns an empty list, can someone tell me why this is happening? [code=python] ## Written by Tom Tetlaw ## Copyright (c) 2009 ## Written in IDLE<www.python.org> import sys, os import re sys.path.append('E:/Tom's Personal Project/engine') import shared.useful.Useful import shared.charactors ##TODO: ## Make the Monster …

Member Avatar for shadwickman
0
210
Member Avatar for mbox_96

Hello everyone, I'm new to pyhton and this is my first post. Please help me understand how can I tell python where my parallel module is located. parallel module I think is located under parallel folder. Any help will be appreciated... [CODE]import sys sys.path.append('C:\\Python26\\Lib\\site-packages\\parallel') class HelloWorld: _reg_clsid_ = '{BEA1AA48-1D0A-4D19-8E98-03C54F195B59}' _reg_desc_ …

Member Avatar for Stefano Mtangoo
0
136
Member Avatar for tomtetlaw
Member Avatar for pymatio

I have this python file: [CODE] #!/usr/bin/env python import os import Cookie import hashlib import MySQLdb import cgi import cgitb; cgitb.enable() def showform(): reshtml = '''Content-Type: text/html\n <html> <body> <a href="register.py">Not a member? </a> <form action='login.py' METHOD=post> Username: <input type=text name=person value="New User" size = 15><br> Password: <input type=password name=pass …

0
49
Member Avatar for cherrypy

hi I am developing multiple online game, in networking side i don't know which server is best. along with this please help in twistedpython programming also,I have small doubt in this how van i run the twisted python programme in windows operating system,whenever i run that pogramme in windows o.S …

Member Avatar for s_sridhar
0
69
Member Avatar for trihaitran

I am reading chapter two of the Pylons [url="http://pylonsbook.com/en/1.0/installing-pylons.html#quick-start-to-installation-for-the-impatient"]book[/url]. In the text I am told to run: [code]$ python virtualenv.py --no-site-packages env[/code] This is what I got back: [code]$ python virtualenv.py --no-site-packages env New python executable in env/bin/python Installing setuptools........... Complete output from command env/bin/python -c "#!python \"\"\"Bootstrap setuptoo... " …

0
63
Member Avatar for lmr8889

I am extremely new to python (programming in general too). I am the rooms director for a large hotel. The reason I am attempting to learn python is to create simple programs to help streamline some of the easy, but lengthy processes done by both my front office and housekeeping …

Member Avatar for michellelondon8
0
121
Member Avatar for sravan953

Hey guys, I want some of your help.... How do I make a keylogging application in Python [I]without [/I]using pyHook? Any other module for that? I heard that learning about [I]threading [/I]will help...is it true? Thanks guys...

Member Avatar for scru
0
490
Member Avatar for ckaiser813

i'm suppose to write a program with two classes, the first class takes two numbers and adds them together. the second class has no methods but has an object called add2. this is what i got class Adder1 (object): number1 = int(input("Give me a number:")) number2 = int(input("Give me another …

Member Avatar for jlm699
0
124
Member Avatar for Jintu

[code=python] total = 0 max_score = -1 min_score = 100000000 total_numbers = 0 x = 0 y = 0 print("Enter a list of numbers, (Enter -1 to stop) ") print ("Press the enter key after entering each number") print ("End the list by entering -1") print () number = int(input("")) …

Member Avatar for vegaseat
0
138
Member Avatar for MK12

Hi. Before I start I'll just let you know that this isn't for school, I'm just doing python as a hobby which I have pretty much taught my self. I'm working on a project, it is the "cheat!" card game written in python, currently CLI but when it is bug-free …

Member Avatar for scru
0
2K
Member Avatar for dude93

Hey, I'm not new to python but I wouldn't say I'm use to python either, I am very limited to what I can do, but I was wondering if anyone could give me some ideas for some simple programs that will teach me usefull things to learn. Thank you very …

Member Avatar for vegaseat
0
110
Member Avatar for tomtetlaw

Is there a different version if IDLE for Python 3.0(Python 300, Py3k)?? If there is, how do I download it?

Member Avatar for vegaseat
0
157
Member Avatar for sravan953

Can anybody gimme a link to a good msvcrt tutorial, because I want to learn getch() badly!

Member Avatar for vegaseat
0
126
Member Avatar for winmic

Hey all, I just recently got into wxpython for my job and I ran into a snag. When print previewing (using the demo code) there seems to be an insane amount of pages, yet only a few of them are viewable. So my questions are: 1) Why is there an …

Member Avatar for vegaseat
0
99
Member Avatar for sravan953

I wanted to make a Python prog just for fun, to get a pattern like: [CODE] * ** *** **** ***** ****** ******* ******** ********* **********[/CODE] So, basically, I started off by making a script to simply print [CODE] *****[/CODE] using a loop. Here's the code I used: [CODE]import time …

Member Avatar for vegaseat
0
95
Member Avatar for tomtetlaw

How do you specify a certain path for the import thing to import? such as [icode]import "E:\Tom's Personal Project\engine\shared.py"[/icode] Any help would be appreciated :)

Member Avatar for vegaseat
0
157
Member Avatar for poeticinsanity

I'm running a portion of code in a loop. It accesses a global variable only to print it, and that variable is never changed after it is set in the __init__. However, the first print statement occasionally will fail, but the second one does not. Any ideas as to why …

Member Avatar for vegaseat
0
102
Member Avatar for hughesadam_87

Hey guys, When using the glob import, I want it to scan all of the files in a directory, but not scan other directories in that directory. For example, say I am in a directory with the following files: [CODE]file, file1, file2, DIRECTORY1, DIRECTORY2[/CODE] When I use the glob command: …

Member Avatar for vegaseat
0
151
Member Avatar for Mclovin

I want to create subfolders in already existing subfolders. For example, I have a rootdir with about 50 subfolders in it. In each subfolder I want to create about 5-6 new folders depending on the filename in the subfolder. Confusing? YeahIknow.. I think I know how to create new subfolders …

Member Avatar for jlm699
0
3K
Member Avatar for gsingh2011

Hi, I want to make a program that opens a url, finds the data I need, and returns it to me. The problem is I have to login to the website, and I don't know how to do this. I've looked at some examples, and this is what I have …

Member Avatar for siddhant3s
0
108
Member Avatar for iambinary

where does the print() subroutine, subprogram, or function exist? sure, you "call" it so it can return a value or result, but from where? from where do you "call" it? where does it exist? i don't understand!!

Member Avatar for vegaseat
0
114
Member Avatar for gislik

Hi, I'm new to both python and Wxpython so I was wondering if someone could help me with a problem I have. I made a button that runs the UpdateNebula function. the function takes a string called path but I haven't been able to find a way to have the …

Member Avatar for vegaseat
0
132
Member Avatar for hughesadam_87

Hey guys, A while ago, with your help, I was able to create a code which scans a data file for names, and when a new name is found, it appends it to a list. For each entry is the list, the code then opens a new file for each …

Member Avatar for jlm699
0
1K

The End.