15,190 Topics
![]() | |
Hi all! Just wondering if it was possible to be able to create a Tkinter window that can handle files being 'dropped' on it. What i want is to be able to drag a file from an explorer window to a widget on my program (probably an Entry widget) and … | |
HI I am new to .py and I am having a bit of trouble making the rooms and items do what I want any help will be much appreciated. : ) [code=python] print """ TIBBYS LITTLE ADVENTURE EPISODE ONE Tibby the cat wakes up and is hungry, he decides to … | |
Hello I am trying to create my own email client. I have one problem. I cant parse data from email. I am using poplib -> received email looks like this: [code] ('+OK Message follows (1562 bytes).', ['Reply-To: =?iso-8859-2?Q?Jakub=20Voj=E1=E8ek?= <jakohv@seznam.cz>', 'Received: from kubuvpocitac (r3ai164.net.upc.cz [213.220.226.164])', '\tby email-relay2.go.seznam.cz (Seznam SMTPD 1.0.36@12969) with … | |
Hi, Does anyone know how to perform web queries programmatically from Python with GET and Post requests? I have been trying out my code on this site - [url]http://www.comp.leeds.ac.uk/Perl/Cgi/textareas.html[/url] [code] import urllib, urllib2 link = 'http://www.comp.leeds.ac.uk/Perl/Cgi/textareas.html' urldata = {'review':"test",'method':'GET'} data = urllib.urlencode(urldata) req = urllib2.Request(link, data) response = urllib2.urlopen(req) the_page … | |
Hi.. I am totally new to Python and I have no idea as to where to start from in this issue...I want to write a Python script which should automatically create a new website in the IIS manager...how do I get to start with that???It would be great if somebody … | |
Hi all, I add a pygame implementation of the Game of Life to the Code Snippets section. I was actually kind of surprised that we didn't already have one in there! The program only has about 60 lines of code, but I buttressed that with a lot of comments and … | |
Hey guys, I've got a class defined has the following: [code] class TData(object) : #Overriden constructor def __init__(self, oc, via ): self.oc = oc self.via = via [/code] now in a separate file I'm trying it iterate through that using recursion. [code] def search(critia, searchSpace, value) : print "Calling search … | |
Hi, I'm using wxPython (the latest version) and was wondering how to get rid of the scrollbar on the wx.TextCtrl (multiline) object. I couldn't find anything with Google or the search on the forums. Thanks! | |
I'm having trouble running my compiled program on other computers. The script is a wxPython GUI app that creates a task bar icon. The script works perfectly on my computer both standard, in the pdb and compiled. But on two other computers it gave two different errors. The first one … | |
Hi there, I'm very new to programming, and I have this assignment where I'm supposed to create a 2D game in python. The character in the game is Homer Simpson, and I'm trying to get him to move within the maze thats already been created for me. I believe I … | |
I'm writing a simple web server in python using the BaseHTTPServer library. I can serve text content (ie html pages) with ease, but im running into troubles when i try to serve images. The image gets corrupted in transit and when I manually download the image from the website and … | |
Well, I couldn't think of a better word than online for a title, but I meant allowing others on other computers to connect to a server to play a game. Right now, I need help in planning my "online" game of Go. I'm moderately new to servers and clients (I … | |
hello, Does anyone have a script that searches the network and reports on which computers a given directory is found. e.g.: i want to see which computers in my network contain the folder Microsoft Office. | |
Hi , I would need to compare two jpg files using python. Could some one help me, how I can do this Thanks | |
Hi I was wondering if anyone can help me. I am trying to create a game in visual python and have come to a complete stop. I need to be able to run many while loops at the same time, i have looked into threading but can't get my head … | |
Hello I am trying to work with threads and wxPython, but i have one problem. In my application i open main Window and i then i am trying to open another window in thread, but the second window does not work. Take look on my code, please: [CODE] #-*- coding: … | |
Is there a way to call PLINK--the genomewide analysis software program from Python? | |
I use pymmsql to access MSSQL 2000, with a table, I store Chinese Character in NVarchar field, Chinese Character display normally when I query them by MS SQL Query Analyzer under Windows or by unixODBC under Ubuntu. But when I query those data by pymssql or pyodbc, all Chinese Character … | |
I am totally new in biopython and its my first program.so may be i am asking stupid question. I am working with a text filelooks like this: #NAME AA TOPO ACCESS DSSP STRIDE Z-COORD 1lghB A i 79.8 H H -24.58 1lghB V i 79.6 H H -22.06 1lghB H … | |
Hey, all. I'm writing a progam that uses Binary search trees to create a game similar to the 20 questions game. Unfortunately, I'm not quite sure how the code works completely. I think it should probably have recursion in it somewhere as we just got done covering that, but I … | |
im writing a personal program thats storing scores. The layout is done using Tkinter using labels buttons and entry widgets, however, because there are a lot of entry widgets needing created i just stuck their creation in a loop, [code] for m in range(1,10): self.input_score = Entry(frame,width=6) self.input_score.grid(column=5, row=m) [/code] … | |
Im only new to python but im trying to write a code that will allow me to randomly generate a number between 1 & 15, I know that part is import random def main(): number=random.randrange(15) + 1 But im not sure where I need to go to from here to … | |
hey guys I need you help, I'm new comer in here but I hope this can help me. I'm writing a code that can read the file (such a story or newspaper) then the identifythe story if that story has a itemY in it the it will print +1 otherwise … | |
I have a problem, and have been searching for a solution many different places. I have a program written in wxPython that downloads and reads a file. I would like it to do that every hour, but the problem is that the wxPython app is running in a loop ( … | |
I know that frets on fire was made with python, but a question i have had was whenever you save something in python idle it is a .py, and you cant run them unless you have python (and if they do, they can just edit your program) installed, but how … | |
Hi everyone, Just started programming in Python and iI'm already starting to like this language very much. I have a problem with a program I wrote last night - I'm trying to ping a certain host using [CODE]os.popen("ping xxx.xxx.xxx.xxx"[/CODE] and then read the %errorlevel% from my system using [CODE]result = … | |
Hi, I'm new to these forums. I've been working with java in school, but I can't stand the language. So I've been working with python and find it's very easy to understand, and I actually enjoy working with it. So just for fun I've been working on a pretty basic … | |
Well this is the last program, it's not like anything I've done before. I'm reading through the Chapter that it's after and everything look foreign to me. I need to create a program that prints a report like the following: Program 10 by (your name goes here) Book Total Quantity … | |
Hi, I was wondering if it's possible to call a function using a string that is the exact same as the name of the function. Here's an example in which I wanted to make 4 bitmap buttons using a for loop, and the event bound to each one would be … | |
Hi people, I'd like to add/create labels dynamically at runtime. Just imgaine the folowing: I have recieved a value let's call it ' length' it has a a value already that was was calculated before. Now I want to create/add labels the amount of length. That is my code..unfortunately it … |
The End.