15,179 Topics

Member Avatar for
Member Avatar for StMark

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

Member Avatar for StMark
0
209
Member Avatar for aot

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 …

Member Avatar for Fistroman
0
154
Member Avatar for zanst

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 …

Member Avatar for zanst
0
172
Member Avatar for akindo

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 …

Member Avatar for akindo
0
150
Member Avatar for arya6000

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 …

Member Avatar for Salem
0
91
Member Avatar for kalyan mohan

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 …

Member Avatar for kalyan mohan
0
103
Member Avatar for akindo

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 …

Member Avatar for akindo
0
3K
Member Avatar for SoulMazer

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 …

Member Avatar for SoulMazer
0
163
Member Avatar for Clueless86

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 …

Member Avatar for jlm699
0
410
Member Avatar for bgk111

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 …

Member Avatar for bgk111
0
120
Member Avatar for sravan953

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 …

Member Avatar for bumsfeld
0
129
Member Avatar for dolorous86

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 …

Member Avatar for ithelp
0
54
Member Avatar for Sandhya212

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 …

Member Avatar for sab73
0
106
Member Avatar for simfan147

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 …

0
50
Member Avatar for jcmeyer

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 …

Member Avatar for jcmeyer
0
100
Member Avatar for sab73

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 …

Member Avatar for sab73
0
102
Member Avatar for Darkangelchick

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 …

Member Avatar for shadwickman
0
146
Member Avatar for DrakeMagi

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] # ----- ----- …

Member Avatar for DrakeMagi
0
114
Member Avatar for gertblue

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" …

Member Avatar for woooee
0
161
Member Avatar for danimal132

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 …

Member Avatar for burgercho
0
100
Member Avatar for darkwing

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 …

0
50
Member Avatar for Stefano Mtangoo

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

Member Avatar for Stefano Mtangoo
0
106
Member Avatar for shadwickman

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 …

0
67
Member Avatar for TubbyT

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(): …

Member Avatar for Murtan
0
131
Member Avatar for sravan953

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 …

Member Avatar for sravan953
0
239
Member Avatar for freddiecool

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 …

Member Avatar for freddiecool
0
572
Member Avatar for gsingh2011

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. …

Member Avatar for zachabesh
0
1K
Member Avatar for bgk111

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 …

Member Avatar for bgk111
0
138
Member Avatar for dontgetit

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 …

Member Avatar for zachabesh
0
141
Member Avatar for Aiban

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 …

Member Avatar for snippsat
0
105

The End.