15,406 Topics

Member Avatar for
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
132
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
56
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
112
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
52
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
102
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
107
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
150
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
116
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
164
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
105
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
53
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
110
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
69
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
134
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
243
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
578
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
144
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
145
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
108
Member Avatar for sab786

hi i am really stuck now i hope someone can help ok so i have read in a file i have created a dictionary which reads every line and counts how many matches there are compare={} for matching in line: matched =( matching[3],matching[7])

Member Avatar for sab786
0
115
Member Avatar for sravan953

Hey guys, In Java, there is a method called substring, but what substitute does it have in Python, or do I have to explicitly do it like: [CODE] s=raw_input("Enter a sentence: ") s2="" a=0 b=0 for a in s: if(a==' '): s2= s[b:a] b=a a+=1[/CODE] Thanks guys!

Member Avatar for jlm699
0
330
Member Avatar for sab73

hi all, i am pretty new to Python(a very new to this forum). have been programming in C & C++. i have a DLL written in C which i need to use. i would like to access it through Python instead of using Visual C++. i am having a problem …

Member Avatar for sab73
0
210
Member Avatar for dinilkarun

Hi All, How can I increase the time for which the ToolTip is displayed. I currently have a radio button for which I have set a tooltip and the content is large. There is not enough time for the User to read it completely. I dont want to use the …

Member Avatar for dinilkarun
0
102
Member Avatar for wezelball

Hi, Is there a library/plugin that will allow me to display an MJPEG encoded image from a web server? I am developing an app in pygtk (using glade as GUI designer), and this server supposedly downloads a java applet to the client to handle streaming. Googling this has led me …

0
41
Member Avatar for meyer7

I am attempting to upgrade to Python 2.6.2 from Python 2.5. Everything installed successfully but import _tkinter fails. I then proceeded to install tcl 8.5.7 and tk 8.5.7 and reinstall Python 2.6.2 after making sure the appropriate directory was in the included directories list in the setup.py file. Any idea …

Member Avatar for woooee
0
148
Member Avatar for Stefano Mtangoo

Iam finishing my little database based small project and I need to save current status for next time(The save option :) ) The stuff I want to save is just list of tuples and I have to save: 1. The List of tuple 2. The index of the last element …

Member Avatar for Stefano Mtangoo
0
87
Member Avatar for foosion

I have some code which "requires python 2.5.2 or bytecode compatible." Would 2.5.4 work? 2.6.2? Any harm in installing either of these on the same machine as 3.1 (separate directories)? Windows XP if that matters.

Member Avatar for foosion
0
180
Member Avatar for Aiban

Hello. I can't believe i'm stumped on this ok .. main menu again ..... nice fat quit button .. works great quit = Button(root, text = 'Quit', command = root.quit) awesome work hey .... i also have an about window (cleverly called awin) .. click it .. it tell you …

Member Avatar for vegaseat
0
277
Member Avatar for pymatio

Does anyone have any game ideas I could do it pygame? So far I've done a breakout clone with special blocks that give you extra points or give you an extra ball

Member Avatar for Clueless86
0
161
Member Avatar for Stefano Mtangoo

What is ctypes data for BOOL? I mean in C++ to ctypes we have: int--> c_int float--> c_float what about BOOL?

Member Avatar for pmf
0
857
Member Avatar for mathijs

the cursus i'm taking on python (free on internet). said i know enough and that i should try creating some simple games like oxo. the problem is that i don't know how the create a framework for such a game any help is welcome. mathijs p.s. my english may not …

Member Avatar for mathijs
0
136
Member Avatar for abhigyan91

hey everyone, i am newbie to python, i was trying to write a script for the following problem statement(no it doesn't work..:( ).. here, is the code.. i have a few general querries about python also, plz help me out... thanks! [QUOTE] Problem D - Australian Voting Australian ballots require …

Member Avatar for shadwickman
0
1K
Member Avatar for abhigyan91

i know that 6/5 returns 1 and 6/5.0 returns 1.2 but suppose i am defining n=6 and d=5, i want n/d to return 1.2 instead of 1, how do i do it?

Member Avatar for shadwickman
0
143
Member Avatar for Aiban

Hi Everyone. Consider this part two after solving part one of my output window issie basically 7zip i needed to output its text to a output window i had created inside my main menu where the button "backup" exists. The window within the window code looks like this. [code] outputLabel …

Member Avatar for shadwickman
0
111
Member Avatar for madshaun1984

Hi all, I have been trying to add a kick command to pyborg-irc and cant figure out how to do it, the annoying thing is if I could figure this command out, I could then figure out several other commands, the script im using is quite long so I upped …

0
36
Member Avatar for tomtetlaw

Hi I am making a text game, and I have made up a basic framework. I have 2 questions 1) Sometimes, the python interpreter bugs out, like saying that I misspelt a variable 'Item' as 'item' even though I can see the correct spelling infront of me, and the only …

Member Avatar for Clueless86
0
175
Member Avatar for Aiban

Hello Everyone Thanks for the message of welcome in a previous post. I have many questions but i have sleected this one as it represents my favourite piece of not working code (hahaha) but it has been studied and altered so i got this bugger working .. mostly . Explain: …

Member Avatar for Aiban
0
10K
Member Avatar for Alex!

Hey Guys. I've been given a Major for school where I have to create a Mathematics program in Python. The problem I am having is that If i try to set up a canvas with a background image, the buttons will not show any more!? the second problem I am …

Member Avatar for vegaseat
0
117
Member Avatar for Dixtosa

Hi All how are you?:). ok. lets begin. mmm, when i use py2exe applications became in windows classic mode. for example buttons corners became more sharp. if you cant understand , i will put down pic.-s:) and is there any way to eradicate that? sorry for my english:) :)

Member Avatar for Dixtosa
0
77
Member Avatar for sravan953

Hey guys, I am currently using subprocess module to open programs and stuff like that... What I want to know is; if in case I want to open Windows' Sound Recorder, how do I start the recording action? Like: [CODE]subprocess.call(location of the program)[/CODE] -will only open the Sound Recorder, but …

Member Avatar for Stefano Mtangoo
0
128
Member Avatar for dezza

So far i've got this and it returns something like: -2087276233 [code]import binascii def getCRC(filename): filedata = open(filename).read() return binascii.crc32(filedata)[/code] Someone told me that I had to use struct.pack or struct.unpack to change it to hex values. I am not sure which type to convert to and would like some …

Member Avatar for jlm699
0
375
Member Avatar for Aiban

Hello everyone Just saying hello before i rip into the many questions that i'm sure will occur. I'm brand new to Python programming (and in fact any programming since Arexx on the Amiga - anyone remember that? I'm here cause i signed up at python-forums.org and found it is only …

Member Avatar for Clueless86
0
103
Member Avatar for james27

hi im making some website login checker. all thing is almost no problem except resulted save function. here is sample login id and password for test. bkozluxvghzb67:ukrnvs37 kicgnudgreuq10:atzjzp32 to test this source in python,need to make some text file "daum.txt" and insert bkozluxvghzb67:ukrnvs37 kicgnudgreuq10:atzjzp32 this two account in there. i …

Member Avatar for james27
1
812
Member Avatar for dilbert_here00

Hi All, I have an issue regarding multi threading on windows XP : I have some x number of port commands which I have to send one by one to a device & then store the device response in an excel file. I used the unittest module to make a …

Member Avatar for shadwickman
0
193
Member Avatar for SlvrDragon50

Hello! I've been given a task where I need to compare two strings of DNA for similarity given a location. There are two files: One which contains the alignment locations and the string of DNAs and one that contains the location that I am comparing. So far, I believe I …

Member Avatar for SlvrDragon50
0
141
Member Avatar for bgk111

Hello, I am having some terrible issues getting data formatted in a way that is useful for me. All I am trying to do is read a file that has several points of data in comma delimited format, and break each line into multiple variables (just need to grab each …

Member Avatar for bgk111
0
110
Member Avatar for foosion

Is there a way to place widgets on pixel coordinates rather than row, column coordinates in tkinter? For example, if I'm using grid, if I have a 20x10 Text box at row 0, column 0 and want to place three buttons to the right of the textbox, one button over …

Member Avatar for Aiban
0
151
Member Avatar for pads_irl

Hi all. Currently I am (trying to) writing code to read information from MS Access using win32com. I was wondering if anyone could help me with some code to do this. I am completely stuck! I have used win32 before for excel, but I’ve never used access before and the …

0
40
Member Avatar for Your_mum

Playing about with python I thought about trying to write a program that gets a simple text file eg. hello %s, and using an adress book, loops through it, changing the %s every time into the next name in the adress book, using a queue. But it just doesn't want …

Member Avatar for Your_mum
0
105

The End.