15,181 Topics

Member Avatar for
Member Avatar for db_ozbecool

1. Does Python have some built in [B]statistical functions [/B]- eg. like PERCENTILE, Root Mean Square etc ? I tried Python help and the web, to no avail. I checked standard Python maths functions and could not find anything too. If there is nothing built in then is there a …

Member Avatar for woooee
0
160
Member Avatar for scott212

I'm building a site and attempting to do everything I used to do in PHP in Python (what can I say, I just like it better!). There are a couple of scenarios that I don't quite understand, however. Such as: 1. If my plain ol' Python page is called from …

Member Avatar for [Wacky]
0
113
Member Avatar for iamthwee

I am using xls2csv.py from the module pyExcelerator in python but there appears to be a bug in it. [url]http://www.daniweb.com/forums/thread144178.html[/url] [code] #!/usr/bin/env python # -*- coding: windows-1251 -*- # Copyright (C) 2005 Kiseliov Roman __rev_id__ = """$Id: xls2csv.py,v 1.1 2005/05/19 09:27:42 rvk Exp $""" from pyExcelerator import * import sys …

Member Avatar for iamthwee
0
105
Member Avatar for Stefano Mtangoo

Hello all, Please review these two piece of code and see why the latter doesnt resize as desired. When I add panel I find result becomes very strange. How can I resize widgets in a panel without such problem? Below are the two codes for simple editor PROBLEMATIC CODE [CODE] …

Member Avatar for Stefano Mtangoo
0
76
Member Avatar for fordprefect

Hi all! I'm a complete pyhthon n00b and I'm trying to execute an external command from within my python script. For this I use the subprocess module. Here is all the relevant code: [code]class PipeThread(threading.Thread): def __init__(self, fin): self.fin = fin self.sout = "" threading.Thread.__init__(self) def run(self): self.sout = self.fin.read() …

Member Avatar for rajatdudeja
0
225
Member Avatar for massivefermion
Member Avatar for pravdexter

Hi, I want to Access the device manager of remote machine through python program. The actions which I want to do with the program is Update Driver, Disable, Uninstall So please help me with in this regard if possible.

Member Avatar for Ene Uran
0
245
Member Avatar for massivefermion

is it possible to make python executable files that can be run on any platform?(without python.like c++) thanks

Member Avatar for lllllIllIlllI
0
74
Member Avatar for lllllIllIlllI

Hi guys I have been making a program over the last few days that grabs an image and re-paints it in paint in 256 colour. The main thing this program is for is so you can watch it getting painted in paint. It works perfectly on my computer but i …

Member Avatar for lllllIllIlllI
0
341
Member Avatar for lllllIllIlllI

Hey everyone I am interested in learning Pygame as a GUI that is suited to making games and i was wondering if it was worth it? My question is, is it good for anything else than games or animations?

Member Avatar for Ene Uran
0
103
Member Avatar for tomtetlaw

i was busily typing away one day for my text game when i decided that i wanted to test it so i tried to run it and it came up highlighting the first print in the section below can someone please help me? [CODE=python]choice = raw_input("Look around or go back …

Member Avatar for tomtetlaw
0
60
Member Avatar for massivefermion

Hi guys and gals I wrote someting like this: [CODE]s1=s2=0 p=[] for x in range(200,250,1): for d in range(2,x): if x%d==0: s1=s1+x/d for d in range(2,s1+1,1): if (s1+1)%d==0: s2=s2+(s1+1)/d if (s2+1)==x: p1.append((x,s2+1)) print p[/CODE] but when i interpret\compile it,it prints an empty list thanks in advance

Member Avatar for massivefermion
0
93
Member Avatar for OutOfReach

Ok I'm making a program in PyQt and when I call [code=Python]os.path.join("~/", "otherdirectory")[/code] It gives me: [code=Python]File '/usr/lib/python2.5/posixpath.py', Line 62, in join: elif path == ' ' or path.endswith('/'): Attribute Error: endswith [/code] I don't know what is causing this. :S Any help would be appreciated!

Member Avatar for OutOfReach
0
263
Member Avatar for Caiterz

Ok in the journal community, livejournal, you are limited to 1000 tags. THey decided to do this randomly after i accumulated more than 1000 tags. So I want to merge tags.. there is only one script out there. (LJ themselves dont support merging) [url]http://community.livejournal.com/lj_nifty/156195.html[/url] - the EXE [url]http://community.livejournal.com/lj_nifty/155984.html[/url] - the …

0
54
Member Avatar for CostaRica

Hi. I have been trying really hard to make a CRUD app with a wx.grid.PyGridTableBase-based wx.grid.Grid that takes its data from a resultproxy of the SQL Expression Language of SQLAlchemy from a MySQL database table, but the problem I have is that I have to convert the resultProxy to a …

Member Avatar for sneekula
0
86
Member Avatar for jimjag

Hey I'm having a problem with an attribute error that i was wondering how to fix the code I have is [CODE] import pygame pygame.init() #---------------------------------------------------------------------------------------------------------------------------------------------# """ This is the small box which the players will be able to stand on""" class Ground(pygame.sprite.Sprite): def __init__(self): pygame.sprite.Sprite.__init__(self) self.image = pygame.Surface((768, 18)) …

Member Avatar for sneekula
0
161
Member Avatar for tomtetlaw

I was writing a text adventure in python and i ran into a "NameError: name 'military' is not defined" error and i need help, heres the code this is the part with the prob: [code=python] choice = raw_input("Pick your civ:") if choice == military: [/code] thnx for your time -- …

Member Avatar for tomtetlaw
0
105
Member Avatar for anderson

I am writing an application using python to display a FITS image file. I am using pythoncard to build GUI for my application.I can display image files in jpeg, .png, etc . but I am not able to dispaly FITS image in the same application...I donot understand why I am …

Member Avatar for anderson
0
273
Member Avatar for trihaitran

I am trying to write a web scraper and am having trouble accessing pages that require authentication. I am attempting to utilise the mechanize library, but am having difficulties. The site I am trying to login is [url]http://www.princetonreview.com/Login3.aspx?uidbadge=[/url] user: [email]bugmenot2008@yahoo.com[/email] pass: letmeinalready Previously I did something similar to another site: …

0
72
Member Avatar for LexiK

Hey Hey everyone :) I need some serious help with writing this game. Its called Nine Men's Morris! If some one has any idea how to write it, or possibly has the code for it. PLEASE PLEASE LET ME KNOW!!! You will be a life saver!!!! Thx Lexi

Member Avatar for jlm699
0
963
Member Avatar for hardik.38

Write a program that uses loops to generate table where each cell equals the number in the column divided by the number in the row. The maximum column and row numbers are specified by the user. The following table results when the user specifies 3 as the maximum column and …

Member Avatar for jlm699
0
93
Member Avatar for Dekudude

Hi there! First off, let me say I HAVE Googled the subject, but all provided functions... didn't work. Simply put, I want a function that closes my Python script, and then reopens it. I tried making my own, which would open the same file, sleep 2 seconds, and then close, …

Member Avatar for mathijs
0
3K
Member Avatar for pocnib

I know this is a homework question, but I have reached the end of my rope and really need guidance. I have had four years of Java programming then walked into my CS 3 class and was given an assignment in python. I have never worked in Python before but …

Member Avatar for pocnib
0
162
Member Avatar for lumeniel

Hello I have a problem that I can't understand. This errror return when I try to compile: name 'image_name' is not defined. This is my code: [CODE] def LoadImage(image_name): file_name = self.clssSnc.sprites[slf.clssSnc.stat] if self.clssSnc.stat == 0: file_name = self.clssSnc.spritesi[slf.clssSnc.stati] #carrega a imagem do cenĂ¡rio ou do personagem fl = None …

Member Avatar for lumeniel
0
726
Member Avatar for random7

Hi, everyone I have a question about reading column data from file. helium.dat He 1.31 He 1.32 He 1.39 He 1.41 He 1.38 He 1.39 He 1.21 He 1.45 He 2.31 I want to print just the 2nd column data(number) from helium.dat like below 1.31 1.32 1.39 1.41 1.38 1.39 …

Member Avatar for hardik.38
0
233
Member Avatar for csm_tC

I have searched the forums and could not find a direct answer to my question, it's probably too simple and i'm over looking something. It's my first day with Python, I'm in the process of developing a program that converts a given float integer into a variety of different things. …

Member Avatar for Shadow14l
0
237
Member Avatar for s_jmp

hi all, i have loaded a dll with stypes.cdll and i want to get thta dll's parameters and method like when you write: <'the dll handle'>. and just after you put the dot a list appears to show you the methods or like when you get a dir() from a …

0
74
Member Avatar for scru

I'm using [B]pygtk[/B] and [B]glade[/B]. I built the UI using glade and I loaded it using the gtk.Builder. Now, I'm trying to retrieve the a menu item using gtk.Builder.get_item() so that I can update the submenu, but it returns a gtk.Action object. There seems to be no way for me …

0
66
Member Avatar for dr_hamburger

hello guys... i have a bit of a problem with my assignment im working on :( what the problem is there is a function which accepts a string, a keyword and an array of keywords to replace the keyword occurrences with for eg, def function(text, keyword, keyword_list): and for eg, …

Member Avatar for woooee
0
500
Member Avatar for s_jmp

i know there is not anyway to send ussd in pys60 yet but i want to know can somebody make a module or something to send ussd with python or does anybody know the process to make such a module

0
66

The End.