15,179 Topics
| |
Hi My "callable" function doesn't work. Who knows why? [CODE]>>> callable(print) Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> callable(print) NameError: name 'callable' is not defined >>> [/CODE] Regards, Mark | |
I have a nice little Tkinter program but need to make the mouse cursor invisible for parts of it. I have seen ways to make the cursor change to other images, but I need it to actually be invisible. Any help? P.S. If you think it's impossible that would be … | |
Hello all, I'm beginning in Python and I need to input some information in a declared variable, like this: [code]XML = """<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <Authentication xmlns="http://xxx"> <Account>xxx</Account> <Password>xxx</Password> <Guid>xxx</Guid> </Authentication> </soap12:Header> <soap12:Body> <SendMessage xmlns="http://xxx"> <message> <From>xxx</From> <MessageBody>xxx</MessageBody> <MessageDate>xxx</MessageDate> <Subject>xxx</Subject> <Devices> <DeviceMessageVO> <Phone>[B]I need to input … | |
Dear all, I am quite confused about the Python logging. I have read and re-read the Python documentation for the Python logging module and googled, but to no avail. I simply want one logger to log to a file and another logger to log to the console. Neither should log … | |
Hello I'm brand new to Python, I usually program in Perl, C, C++, but I would like to try pamie with Python, I download it and I moved the 2 files called PAM30 and winGuiAuto to C:\Python26\Lib\site-packages but after I run this code [CODE] from cPAMIE import PAMIE # create … | |
Hey guys, I have got one problem.... I am very new to wxpython. I have coded a program which takes input in the terminal and I would like to take the file as input (a photo) with an interface... like when we upload pics in internet we get a file … | |
Hi guys, I am trying to use the Python logging API to log only to a file. The code below logs to only a file if I have it at the beginning of my class, right beneath the "class ..." line. If, however, I put it inside a method, it … | |
Hi, so I am trying to write a simple chat server in Python. If I just run the server, it runs fine. Yet, when I try to connect to the server from a different terminal via a "telnet localhost (port)", the server gives me an error: [quote] error: uncaptured python … | |
I thought I should take a few days and read some more, and learn a little more. I decided to take a more easier approach. This 'start' of a simple pirate game, which I did not reference anything for once. So its all wrote from what I know, and not … | |
I am trying to write a python program that will enter another program using a shell command, then issue commands to that program, then exit the program and continue running the rest of a python program. To be more precise, if I was simply running in a shell, I would … | |
| Hey guys... I am working on a program where when a user enters a number, the program adds all the digits of the number and goes on till the sum is single digit. [TEX]Example: 9812737 = 9 + 8 + 1 + 2 + 7 + 3 +7 = 37 … |
hello every1.. currently i do my fyp...the title is SONY ERICSSON MOBILE PHONE "HOUSEKEEPING" OF CONTACT INFORMATION THROUGH PC VIA BLUETOOTH.....and i have to use a python as a languange...is it possible to create a python mobile application for sony ericsson?..hmmm..or i could use jython...i need ur help guys..!!:( Editors … | |
Hi, I am very new to Python and thus the question. I have a Python List ready now which I need to send to a C program for further processing. Is this possible? I came across SWIG which does a C to Python but could not find anything that did … | |
I was wondering if I could make a remote search engine in Python. Basically what I want it to do person enters a search term on my website. It searches the other site and returns data to my website. The one drawback is that it is a forum so it … | |
I want to have scrollbars in a wxpython object that the user cannot navigate away from. Like how a dialog works. I want the scrollable area to be have comboboxes on it. I understand that I can easily put a scrollable area on a dialog that includes text. The only … | |
hi, i have a python module which i compile to an EXE (using Py2EXE). this EXE will be called from another program which was created in C++. my Q is, how can i return an error status from my PY exe to the calling program. is there anyway i can … | |
Hey guys I'm attempting to make a super mario like platform game and need help with making images move. Like instead of moving the little man, just having the background moving with the corresponding button movement. Can anyone hint at how to do this? Or is moving the little man … | |
1. Opinions how to make it look better ? 2. How to make path for Linux ? using user ? 3. For Linux . What the difference between ( #! = user/bin/python , #! = user/bin/env python) ? 4. Anything i forgot or should consider ? [code=python] # ----- ----- … | |
Hi! I've been working on a GUI for a while. The problem I'm currently having is that the files I'm reading in have the same "tags" for different lines. [B]For example, the following would be in a file I'm reading in[/B]: [Laser1] port ="//dev" type ="lms" [Laser2] port ="//dev/s2" type="hokuyu" … | |
a part of my script will read line by line of a large text file (about 120 lines) and needs to pick out the title. This is done by selecting everything between the 2 quotes. it will work for most of the file, then it will not. its seems to … | |
Hi all. My program currently does the followings: - It listens for certain packets on a certain IP address - Pops up a MessageDialog when receiving such packets. On this machine, I run a VNC server that output to display 1. When I VNC to the machine, I can see … | |
I want to make simple MSN/YAHOO Chat. I have some knowledge on sockets but I don't know what more I need to know. So My Question Is, what is pre-requisites before I jump into the Project. NOTE: The project is for learning Python/wxPython Thanks :D | |
Hello. I haven't ever needed to bother trying to do things to the console such as clearing one line, changing colours, etc. But now I was wondering if there is a (preferably built-in) cross-platform way of clearing just the current line in the console. I have a program which does … | |
hey guys im trying to work this out for a school assignment, i cant get the destroy function to work whith the button i created, heres mycode see if you can look at it and tell me whas wrong import Tkinter as tk root = tk.Tk() root.title('background image') def qwerty(): … | |
| Hey guys! I want to make a Python script and I want to upload it online via Webs' free file hosting service. Basically, what I want to do is, when any user visits my website, the app stored on the server should immediately fire up and do some function(I haven't … |
Hi im working on an encyclopedia. The problem im having is the following: in next print car_num, len (car_list) NameError: global name 'car_list' is not defined [B]Line 62[/B] I might also add that before i moved car_list into a separate script/module, everything worked fine. The idea is basically to have … | |
So I've been trying this for a long time and I've given up. I can't code it myself and no examples are helping. I want to log on to a website and return some text from it. The returning text part won't be hard, the logging in is the problem. … | |
Well, I just had another issue resolved and have come to another one that baffles me, and as I can find little to no documentation on the pgdb module, I thought I'd sound you guys out again. I am attempting to insert values into a table in postgresql, and while … | |
Hey, So i am completely new to python. I am taking a course at school by distance and i am unable to get the help/explanation to complete...or really start, my assignment. I am supposed to make a working chequebook calculator. It will store cheques (the cheque number, the amount and … | |
Hello. As a new python student we all tried the password program Mine looked like this :) [code] def Password(): password = ent.get() if password == '12345': ent.delete(0,END) ent.insert(0,'Welcome Back Aiban') else: ent.delete(0,END) ent.insert(0,'Incorrect') [/code] ok ... it does it's job and shows me when i get it right or … |
The End.