15,181 Topics

Member Avatar for
Member Avatar for supriyav

Hi, I have to create *.xls (or *.csv) with multiple tabs. The program is in the loop and every time the loop runs it should create a new tab. Can any one help me with this. (I want to code it with out using PYExcelerator - I tried using that …

Member Avatar for jlm699
0
377
Member Avatar for besktrap

I'm writing a gravity simulation in python and pygame, and had a quick question. Say I have an object that I can move. Lets call it "square". Then I created a line like so... [CODE] pygame.draw.line(screen, (0, 0, 0), (84, 368), (510, 368)) [/CODE] How would I tell python not …

Member Avatar for besktrap
0
112
Member Avatar for thatoneguyx

the question is within this example: (using *'s) [code] #!/usr/bin/python # Filename: inherit.py class SchoolMember: '''Represents any school member.''' def __init__(self, name, age): self.name = name self.age = age print '(Initialized SchoolMember: %s)' % self.name def tell(self): '''Tell my details.''' print 'Name:"%s" Age:"%s"' % (self.name, self.age), class Teacher(SchoolMember): '''Represents a …

Member Avatar for thatoneguyx
0
104
Member Avatar for dinilkarun

we are able to query successfully from a Column called "ParentUUD" (without space) using query in python for MS ACCESS DB. "SELECT Name FROM PartVersion WHERE ParentUUID='"+ str(lstUUID[0]) +"'" we have a column whose name is "Parent UUID" (with space) We are trying to query the column from PYTHON. we …

Member Avatar for woooee
0
1K
Member Avatar for ub007

Hello, I'm trying to write a code to automate logging into a website.I have chosen the forum 'www.tek-tips.com' as an example and tried this script on it....But it doesnt seem to work...What am i missing here..plz help [code]import urllib2 theurl = 'www.tek-tips.com' protocol = 'http://' username = 'johnny' password = …

Member Avatar for jlm699
0
99
Member Avatar for lllllIllIlllI

Hi I have a weather forecasting program that uses a few threads. These threads stop and start at different times throughout the program so there is no set amount of threads at one time. My problem is when i try and close the main thread the program keeps going because …

Member Avatar for jlm699
0
95
Member Avatar for dinilkarun

Hi, I have made a GUI using wxPython. I want to disable the Maximize button, but I am not able to do it. Please suggest a way to implement this. Regards, Dinil

Member Avatar for dinilkarun
0
2K
Member Avatar for Matt Tacular

If I print something to the screen, is it at all possible to erase some of that? Some sort of backspace? That way it would be possible to clear the screen, make a text progress bar, etc. If not, what's the easiest way to do something similar? Thanks,

Member Avatar for mchen10
0
467
Member Avatar for sardarji

Hi, Is there a way in python to get multiple values from a dict? In perl we have this syntax: @values = @hash{@fields} is there something similar in python? thanks, Sam

Member Avatar for vegaseat
0
75
Member Avatar for david_09

Hi all, How can I allocate memory in Python and convert that into Physical memory? I am trying to use CTYPES, but somehow not able to load the required system libraries to use malloc type of system call. Thanks, David

Member Avatar for vegaseat
0
124
Member Avatar for PoovenM

Hi guys, I'm trying to make sense of some Perl code. I haven't actually programmed in Perl before but I do image the functions/methods are similar to other languages. Here's the code: [code=perl] function [dir, wspd] = conv_wind(uwind, vwind) usize = length(uwind); vsize = length(vwind); if(usize ~= vsize) dir = …

Member Avatar for PoovenM
0
227
Member Avatar for dinilkarun

Hi, I have a frame containing buttons, radiobuttons, staticbox containing a text control, etc on different panels. Please suggest a way to set Tab Indices to each of the controls. Right now it is random. Please Help. Regards, Dinil

0
58
Member Avatar for MikeyFTW

OK i have this code below here...it works fine. play with it and you will learn its a simple maths game but i want to add substraction to it as well. i want it to be able to load the program up and then be able to choose from addition …

Member Avatar for jlm699
0
380
Member Avatar for packetsmacker

i am trying to find a good scripting language for Mac OS X. I was told python would be a good choice. Before i dedicate my time to learning it I have to find out a couple of things. Can you run python form the GUI? i.e double click it …

Member Avatar for jlm699
0
91
Member Avatar for ub007

Hello, I came across the fork bomb : ( ) { : | : & } ; : ,and wondering if anyone could suggest a way to run this script on a remote PC. I've setup an intranet as part of my dissertation(server testing),and wish to test my ubuntu server …

Member Avatar for jlm699
0
109
Member Avatar for swills

Would like to get an idea on how to make a timescale in the tkSnack extension using a scaler widget which when moved, moves to a corresponding part of the currently playing track. i.e move the scaler half-way and you come to the middle of the song/track etc Also i …

0
65
Member Avatar for rinsukaze

Hi! This is my first post on this web, so I hope not to be making a dumb question :P. I've been messing with a program for a while, and recently I migrated my code to the 2.5.2. Once I did it my code keeps on giving me the PyNoAppError. …

Member Avatar for vegaseat
0
76
Member Avatar for adarshcu

hi.. i was following the program in d tutorias given in daniweb thread. i typed print " Hello Cu Python!" in the IDLE .. but i get an error as invalid syntax ? can anyone tell me the change to be done??

Member Avatar for adarshcu
0
126
Member Avatar for mayapower

[code=python] class a(object): pass b = a() print id(b) 20441744 [/code] Is it possible to get the instance from this number/address?

Member Avatar for tomleo
0
71
Member Avatar for MikeyFTW

Can someone tell me how to create a simple but attractive splash screen to load at the start of my program which will highlight: 1) the program title 2) who the program is for 3) who designed the program and 4) what version of the program it is thanks

Member Avatar for MikeyFTW
0
10K
Member Avatar for erROAR

Hey, this is my first post in the forums, and I'm fairly new to Python, so bear with me... I'm looking at ways to detect the beat in an audio file. I know that the general idea is to run a loop like so: [CODE] while song is still playing: …

0
46
Member Avatar for MikeyFTW

hey well this program basically is a mathematics game...try the program out for yourself, it works, but im just wondering how to make an reset option so at the end of the program so the user can play the game again. thanks [ICODE]name = raw_input("\t\t\tPlease Enter Your Name: ") print …

Member Avatar for Scuppery
0
627
Member Avatar for devstudio.2007

Dear All, I recently upgraded Python 2.3 to python 2.4 but still now my application searching python2.3 dll in System 32 how to solve this issue........... regards Mani.

Member Avatar for Ene Uran
0
118
Member Avatar for SUBHABRATAIISC

Dear Group, I am trying the following code line: [code] def try2(n): a1=raw_input("PRINT A STRING:") a2=a1.split() a3="God Godess Heaven Sky" for x in a2: a4=a3.find(x) if a4>-1: a5=a3[a4] print a5 elif a4<0: a6=x print "It is not found" print a6 else: print "Error" s=a5+" "+a6 print s [/code] Here, if …

Member Avatar for woooee
0
80
Member Avatar for MikeyFTW

[ICODE]name = raw_input("\t\t\tPlease Enter Your Name: ") print print "\t\t\t\tHello", name print "\t\t\tWelcome to my Mathematics Game" # Selecting the operation of Addition and Substraction followed by the difficulty print operation = str(raw_input("\t\t\tAddition (A) or Substraction (S)")) if operation == "A" or operation == "a": my_op = 'Add' difficulty = …

Member Avatar for woooee
0
118
Member Avatar for docaholic

does anybody know how to make bubble sort work in progressively smaller sizes and determine if a list is sorted on it's first try? i've got the basic bubble sort algorithm down. i just can't figure out the rest of it (my basic bubble sort code below) [code] def bubbleSort(list1): …

Member Avatar for docaholic
0
141
Member Avatar for MikeyFTW

just wanting to know how to implement any background like a picture or something into python programs, i think i can only use .bmp but yeah thanks

Member Avatar for ZZucker
0
114
Member Avatar for fmv2011

Hi guys, I'm quite new to the whole programming schmeal. I have a python program written to generate gaussian graphs. However, I need to obtain the data points from these graphs and put them into a different file. I wanted to know if there is any way I can do …

0
34
Member Avatar for splakhin

Hello to everybody! I'm new in Python ... and have some problem with reading Excel... no matter that I've set format in Excel Text (for all my available data) - it get float value from it... Ok: here is the code: <code> import xlrd book=xlrd.open_workbook("C:/Py/aaa.xls") sh=book.sheet_by_index(0) print sh.cell_value(RowN,CellN) # it …

Member Avatar for splakhin
0
248
Member Avatar for mayapower

Hi, I am trying to create a cutom 'Float' type using built in 'float' type. Here is the code: [code=python] class Attribute(object): """ Common attributes and methods for custom types """ def __init__(self, name=None, type=None, range=None): self.__name = name self.__type = type self.__range = range #Read only attributes name = …

Member Avatar for jrcagle
0
1K

The End.