15,190 Topics
![]() | |
Hi all! I've been working on some school/hobby project for some time now. It's a kind of a simple statistical tool for analysis of data from psychological experiments. Not being professional programmer I encountered a couple of problems concerning data storage. Let me explain the how the data is structured … | |
Hi all, My first post here, but long time troller. I was looking for a GUI platform to develop on and couldn't decide between wxPython, PyQT and/or IronPython or Jython. I decided to go with wxPython after getting a couple of headaches elsewhere. I'd really like a quick IDE to … | |
Hi all, first post so hopefully I'm in the correct place. I'm new to python/jython and am currently trying to write a hot-deploy script, in short its working, however I am now making it for mulitple applications. I'm really struggling to get the path to a JAR archive into a … | |
Hi, i'm trying to take the last list from a list of lists, use that as a start point, then iterate through the list of lists and find the closest match, then use that matched list as a base and iterate through the remaining lists for the closest match to … | |
I have two frames one parent and child. the parent will invoke the child. The program should not allow the user to access the parent until the user closes the child How can i achive it? Need a solution without hiding the parent | |
search(l, key): if len(l) == 0: return False elif l[0] == key: return True else: return search(l[1:], key) I was just wondering if there is any way that i can get rid of "elif" statement. The function is suppose to return False if the key is not in the list … | |
Hi, I'm having a syntax issue with timeit while trying to measure the time taken by a function meant to concatenate two linked lists. [CODE] def get_time() : import cell import timeit for i in range( 1, 16 ): lista = cell.make_list(i) #this function return the root of a sll … | |
hello friends I need to create a child window. but when i am triggering the same event mutiple window is creating. How can i check whether a the window is already visible or not? How can i focus on the same if it exists? | |
I've just joined the site, and I'm embarassed to be posting what is obviously a simple problem, but I've had no luck with figuring it out. I'm sort of new to dealing with GUIs, wx, and much of the CLASS structure of Python. I've put together a simple script below … | |
Hello, im trying to implement a template matching algorithm with the use of Python + PIL and I'm trying to follow the code that wikipedia gives for template matching -> [URL="http://en.wikipedia.org/wiki/Template_matching"]http://en.wikipedia.org/wiki/Template_matching[/URL] Basically it loops through all pixels of a search image, and all pixels of a template. The sum of … | |
So I tried making my first program but it didn't work, but I can't figure out what is wrong with it. I have added some commentary with the code: [code]#!/usr/bin/env python import sys from random import randrange, shuffle, choice, sample DOORS = ['ant','ant','ant','bee','bee','bee','car','car'] def pickdoor(picked): """Returns a number representing the … | |
hello seniors, i am in need of getting some good tutorial or any helping example by which i can get an idea about how to serialize the objects in wxpython. your help will be highly appreciated. Regards Punter | |
This code should be able to get you started to design 2-D scrolling games, like Mario. I spent a few hours trying to figure this out, and firgured I'd put up my efforts. I think there might be a better way to do it, but this should help you get … | |
I just went through some python coding and tutorials lately. For me I am going to use python in a database environment, so what I wanted to ask is doesn't anyone here have some information that will sharpen my python programming knowledge very quickly with some get straight to the … | |
Hello ! I am trying to make a little program, which would go through the string content, find some keywords inside of it and return their position in the text. Unfortunately my program does not work for the duplicated words like "AFIX" or "CONF" (see example bellow). Is there simple … | |
hi friends, I am building a small web application for linux in python lang. I am using httplib for the web interface. and currently i using the following exceptions in httplib. [QUOTE] httplib.HTTPException socket.error socket.herror socket.gaierror socket.timeout [/QUOTE] so i need error codes and descriptions for the exceptions. I have … | |
Sorry guys had to change threads name seeing that NO1 showed an interest in the beginner thread. Hope someone out there has some material that will be helpful. I just went through some python coding and tutorials lately. For me I am going to use python in a database environment, … | |
Hi there, I would be very appreciative if someone could help me get my plots to work. I am plotting a y-variable against time, but on the x-axis the time tickmarks labels overlap. I have tried using the autofmt_xdate but it does not solve this problem in this case - … | |
Hi guys, this is probably a very basic question so excuse me for that. In java you can say: [CODE]Instance instance[] = new Instance[6] for (int i =0;i<6;i++){ instancei[i]=new Instance(...) [/CODE] Or basically declare lots of instances very quickly. In python is there an equivalent where I could write: [CODE] … | |
Hi, I am a total noob... I'm looking for a way to search a directory for config files and search each file for an entry that includes '1-' (bug apparently prepends this randomly) and delete that pesky 1- and save the file (on ubuntu). Any help or suggestions would be … | |
I'm using the code module to add an interactive interpreter to an object. This object has an interact method that when called creates an interactive interpreter with the object's dictionary as the namespace for the interpreter. When done interacting with the object, I want the "exit" function to return execution … | |
I'm new to python, and have just recently started using it as a means to circumvent my lack of calculus knowledge when performing physics equations. The problem I'm working on now is fairly simple, but I'm getting a bizarre syntax error I don't understand. Here's my code: [CODE]## Introduction ## … | |
Okay, all I want to do for now, is create a rather simple python interpreter. I have already created a simple command prompt for windows, utilizing the os module, the script's code is here: [CODE]import os os.system("title Command Prompt") while True: osc = raw_input(os.getcwd()+">> ") if osc == "exit" or … | |
class Toy(object): def play(self, toy): ''''Print squeak''' print 'Squeak!' class Dog(object): def __int__(self, name): '''Name a dog''' self.name = name def call(self, shout): '''Return true if shout is exactly 'Here, n!', otherwise return False''' return shout == 'Here, ' + str(self.name) + '!' def play(self, toy, n): '''Print 'Yip! ' … | |
im asking w input() for user to input "spelling words" for a kids homework, and i want it to append or add the words entered into a list. i got it to ask for user input for the words, but not sure how to make it add them into a … | |
Okay, I'm creating a game where you are a red circle on a black background, and you can move it around the screen, and you have to pick up the other dots. It's more complex than that, but I seem to be having an issue. Some dots will go away … | |
Well, couple days ago I've red in some thread in daniweb, which I was thinking in a solution for it. So the problem is Linux has got the speech recognition, El Duke was trying to find something like windows speech recognition for Linux. As Mathhax0r and vagaseat said, there isn't … | |
Hi! I have a problem. How can I inport, numbers from a txt document and make a math operation with them. I have to transform the cotent of the document into a lists? Lets say this is the content of the file: 44 36 11 66 24 92 3 8 … | |
Hi, I'm trying to match patterns of the types sentence1 = "keywords=walter&keywords=scott" sentence2 = "keywords=john&" sentence3 = "keywords=james&keywords=john&keywords=brian&" so basically the keywords=somestring& part can be repeated once or multiple times. I am trying to extract the string(s) between '=' and '&'. I have come up with the following so far. … | |
I am a linux newbie and I am wondering why some software developed for python is usually installed by doing "python setup.py install". What is it doing? what is the different of this comparing to "compile from source"? For instance, a package in this form: numpy-1.3.0.tar.gz I was told by … |
The End.