15,185 Topics

Member Avatar for
Member Avatar for hyperzero4

Hello, I'm doing a project doing atomic models and am using a toolkit that was developed for Python 2.4 on Ubuntu. I have Python 2.4 installed as my default python currently; however, when I download the tools I need from the synaptic package manager. They only work for my original …

Member Avatar for woooee
0
152
Member Avatar for kiddo39

I'm trying to locate the 'x' positions of certain pixels. Here's and example image: [url]http://img404.imageshack.us/img404/3418/10x.png[/url] if I run this code it gives me the 88 'odd' pixels that I'm looking for: [code] from PIL import Image i = Image.open('10x.bmp') # I save it as a bmp for pixel in i.getdata(): …

Member Avatar for kiddo39
0
2K
Member Avatar for David.lewing

How do you store info (such as highscores, phone numbers, etc.) for your python program? I am thinking like you enter things into a list and then the next time you open the program you can acces that list with all the old info. Thanks.

Member Avatar for David.lewing
0
140
Member Avatar for bhanu1225

Hello All. I got a doubt. In general, for updating remote database, we use ip address for the remote system. Here, i would like to update two remote systems at a time. I wrote the code like the below one. Could anyone please give the correct advice and suggestions. [B]try: …

Member Avatar for jice
0
261
Member Avatar for bhanu1225

Hi all. I am newbie to python. I need a starting step to get through it. [COLOR="Red"]How to read lines from a file.[/COLOR] I need the solution.

Member Avatar for _Nestor
0
101
Member Avatar for ateale

Hi guys! I am having a bit of difficulty trying to get to a 'timecode' track in a QuickTime file using the QTKit framework in Mac OSX 10.5 I am using XCode 3. I have a QTMovie object (set as self.movie) and I can get my python fingers into it …

0
34
Member Avatar for punjabi

i am making a hangman game on python for school and need help i have to practice using loops like ifs there are three parts i have to make which are checkletter.py which i have been given directions to do this • Code the checkLetter() function so that it goes …

Member Avatar for jlm699
0
140
Member Avatar for pythonian4000

Hey everyone! I have been teaching myself Python, and so as an exercise, I have tried writing an image grabber for OneManga.com. You put in the path to the comic page you want to start the grab from, and it grabs every page from there to the end of the …

Member Avatar for pythonian4000
0
219
Member Avatar for gbarnas

Greetings, I've been given a task to create a bunch of thin-client systems. I found a Python script that acts as a window manager and provides a simple "Connect or Shut Down" interface. It works well, but now I've been asked to adapt it for two special situations. 1. Connect …

Member Avatar for gbarnas
0
227
Member Avatar for durga84

Hi, I'm new to python and linux as well. Could someone suggest how to install python2.3.4 on RHEL4? When I tried, installing rpm package it thrown some errors saying that dependencies are missing. Please do needful. Thanks in advance...

Member Avatar for woooee
0
281
Member Avatar for OLer94

Hello everyone, Im very new to python so I am having a hard time with it. I am trying to input a set 's' and have it spit out 'result' which would be a list of all computed subsets of 's'. I wrote the following code but its not working. …

Member Avatar for woooee
0
233
Member Avatar for mohankumar554
Member Avatar for billymcguffin

in my coding program, it says this line of code is wrong syntax: [icode]class Mainwindow()[/icode]. Why? whenever i add a line above it with just a semicolon (;), it says it isnt bad syntax. i copied it directly from a tutorial. WHY??? billy

Member Avatar for jlm699
0
96
Member Avatar for gotm

[code=python] #!/usr/bin/python import os.path n = 10 allPositions = [] state = [] blackPairCap = 0 whitePairCap = 0 blackInaRow = 0 whiteInaRow = 0 row0 = [] row1 = [] row2 = [] row3 = [] row4 = [] row5 = [] row6 = [] row7 = [] row8 …

Member Avatar for gotm
0
144
Member Avatar for juzzy

how do you add the output of a sum back into the input? eg. i = 100 print i/2 which will give you 50 (obviously) then i want to divide the answer by 2 and then the answer of that by 2 and so on ad infinitum thanks in advance

Member Avatar for juzzy
0
111
Member Avatar for leegeorg07

hi again im looking to make a program that asks for a password and if that password is correct it will show a short story and if it is incorrect it will show so and then close. i want to include a backdoor code for my use and later on …

Member Avatar for leegeorg07
0
541
Member Avatar for mohankumar554
Member Avatar for Funktar

Hey there daniweb, I'm a web developer that is way out of my element here, hoping to find some help. I'm supposed to be converting a python/c++ library to linux for a coworker. I'm terrible at python and even worse at c++. This truly is not my element. After a …

0
51
Member Avatar for hunterm

I am in the process of writing and debugging a Python version of Mastermind. I have to use classes, so I have them all in their own files. I have them called and such. My problem now is that a part of the code likes to repeat itself ad infinitum. …

Member Avatar for _Nestor
0
2K
Member Avatar for socksy

I installed it, and I'm trying to follow the tutorial but it won't work right. I made the test file, but when I type "python test.py" in command prompt it doesn't work. What am I doing wrong?

Member Avatar for socksy
0
161
Member Avatar for BlueNN

I've finished my first Python program that might have future use for something of importance, (rather than just [code]print('Hello, world.')[/code]), however, in order to distribute this script I need to convert my script to an executable file so they aren't forced to download Python to view the script in action. …

Member Avatar for Stefano Mtangoo
0
427
Member Avatar for Srinivasa007

Good Evening All, I'm doing a small application using python. I want to check the special characters of the ASCII values with the given characters in the text box. if(string1.rindex!="char(32)" and string2.rindex!="char(32)") message("You have entered the special characters") else: check the values in the database and it follows. Thanks for …

Member Avatar for jlm699
0
74
Member Avatar for mohankumar554

hi, how to clear text in the text fields of the userid and password fields after click the submit button...

Member Avatar for jlm699
0
54
Member Avatar for socksy

My code is fully functional, but I know that isn't the main point of programming. A few of my functions work in ways I know they probably shouldn't but I really just don't know how to fix them. Any other general pointers are appreciated as well, trying to learn as …

Member Avatar for socksy
0
119
Member Avatar for mohankumar554

hi i got an error, " 'none type' object is unsubscriptable"... so how to avoid this error.. can u tell me.

Member Avatar for lllllIllIlllI
0
179
Member Avatar for mohankumar554
Member Avatar for mohankumar554
0
100
Member Avatar for gotm

It keeps giving me this elif syntax error in line 103 and I have NO idea where it's coming from. UGH!!! [code=python] #!/usr/bin/python import os.path #nxn board, in this case n = 10 n = 10 #will hold the positions similar to n-queens allPositions = [] #current state of board …

Member Avatar for woooee
0
175
Member Avatar for ! !

[url="http://www-128.ibm.com/developerworks/opensource/library/os-cherrypy/?ca=dgr-lnxw01CherryPy"]http://www-128.ibm.com/developerworks/opensource/library/os-cherrypy/?ca=dgr-lnxw01CherryPy[/url] [url="http://pyre.third-bit.com/pyweb/index.html"]http://pyre.third-bit.com/pyweb/index.html[/url]

Member Avatar for Arkapravo
0
133
Member Avatar for Spag

Ok so I've picked up some literature and reference books for Python as it has started to interest me in the past few weeks. Now a project has rolled around at uni and I was wondering if I could use Python for what I need to do and then learn …

Member Avatar for scru
0
124
Member Avatar for DimaYasny

Hi all, I was searching for an IDE that is capable of Python GUI drawing, much like MSVS can draw GUI windows without actually having to code them manually. Atm I use NetBeans 6.5 for Python, but I can switch. Yeah, I'd prefer a Linux based IDE of course :) …

Member Avatar for DimaYasny
1
1K

The End.