15,185 Topics

Member Avatar for
Member Avatar for katharnakh

Hi, i am facing some problems with opening an excel file. I am using XLRD module. I am getting XLRDError: Can't find workbook in OLE2 compound document and CompDocError: Not a whole number of sectors exceptions in seperate try on different files. 1.Does any one know anout these exceptions? what …

Member Avatar for vegaseat
0
328
Member Avatar for mruane

hi, first off I want to say that I was helped immensely by the other posts, especially the one where the one person was talking about classes. From veiwing his coding i was able to get my text adventure started. My basic questions are: 1) how do I learn the …

Member Avatar for bumsfeld
0
107
Member Avatar for akadri

Folks, I want to know how to check whether a file exists for not?? One more thing: If we open an existing file in a write mode, then it gets truncated to zero length, so what the way out of this?? Should I use open('filename','w+') Regards, Asrar

Member Avatar for katharnakh
0
85
Member Avatar for Mouche

I wasn't able to find anything on this... well, I wasn't sure what to search for. But I'm curious what the advantage of this: age = 3 print "Hello, I am %d years old." % age ...is over this: age = 3 print "Hello, I am", age, "years old."

Member Avatar for Mouche
0
147
Member Avatar for Matt Tacular

I want to make a program that can do two things really: 1) Detect the beat of a song 2) Output through a port, preferably the paralell port. 1) I was thinking the easiest way to do this, would be to use windows media players bars visualization, but then i …

Member Avatar for vegaseat
0
128
Member Avatar for Mouche

I'm working on a text adventure game just for fun. I am not planning to complete it, but I decided to try it just to learn classes. Seeing the text game in another post using functions, I realize that that is a very nice way to make a simple game, …

Member Avatar for jrcagle
1
3K
Member Avatar for chris99

How would I manipulate an entry widget so that it hides the entered characters behind asterisks? like this: Typed: PassWord Displayed as typing occurs: ******** I'm trying to make a dialog box module, for use in some future programs. I want the user to be the only one to know …

Member Avatar for Ene Uran
0
128
Member Avatar for reRanger

Greetings: I have been trained first in C, then the "power language of choice" C++, then Python-- I really could not stand Python. Now, I am rediscovering Python by choice. I have just been hired as a video game programmer by a company developing for an upcoming new system, but, …

Member Avatar for jbennet
0
101
Member Avatar for Matt Tacular

I know this is VERY off topic, but I am sure that a bunch of people here are experienced with computer building. I am building a computer off of tigerdirect canada and I was just wondering if I could get someone to check and see if all of these parts …

Member Avatar for Ene Uran
0
133
Member Avatar for chris99

The attached program uses buttons to take you to a set of links. The links that the three buttons point to are here, gamefaqs and toontown. You can customise by altering the links and button names within the code, this is just practice. What do you think?

Member Avatar for chris99
0
128
Member Avatar for briggs1987

I need help. I have my program set up except for a graphWin and I don;t know how to set that up

Member Avatar for Ene Uran
0
86
Member Avatar for pfunix

Greetings All! I would like to get some feedback to all ya good python folks here at daniweb regarding some implementations that you guys doing with Python and using MySQL db. I'm looking for some mysql plugin for python. I've tried sourceforge 's mysql-python but with no luck(installing) .. maybe …

Member Avatar for ghostdog74
0
158
Member Avatar for Matt Tacular

I am taking grade 12 programing and in the course, you can make any program in any language for a final project, and I want to do one in python, but I dont know what to make, I need help to come up with an idea for a rather useful …

Member Avatar for Ene Uran
0
130
Member Avatar for dunderhead

Hi, I am having a problem with function and class syntax. I have one class (MakePanel1) that creates a button and label. The button-click event of the button is linked to a function (daclick1) that changes the text of the label. This works well. I have another class (MakePanel2) that …

Member Avatar for dunderhead
0
2K
Member Avatar for FireSBurnsmuP

Okay, I know that Python is a programming language (it comes with some Linux installs), but what are its stats? I mean, how efficient is its build? How much larger or smaller are the programs than C++? How much faster are the programs than those created by C++? What are …

Member Avatar for vegaseat
0
174
Member Avatar for JyotiC

Hi, i am using Pygtk to make GUI . I have a frame in which i have added a VBox.. I want to add scrollbar in that VBox.. but couldn't figure out how to add it. [code] vscrollbar = gtk.VSscrollbar(adjustment=None) AttributeError: 'module' object has no attribute 'VSscrollbar' [/code] it's giving …

Member Avatar for JyotiC
0
293
Member Avatar for bumsfeld

I read in the news that Python in going from version 2.4 to version 2.5 fixed 450 bugs. That seems to be lots of bugs! I used Python a lot and never found a single one of those bugs. What is your experience?

Member Avatar for nytrokiss
0
265
Member Avatar for jrcagle

Hi, I've written a nifty projectile simulator using pygames with the livewires wrapper for physic class: rocket on launch pad has assignable speed and direction, launching causes rocket to move under influence of gravity. Currently, the user can use the mouse to change the initial direction of the rocket, but …

Member Avatar for vegaseat
0
141
Member Avatar for etxulid

Hi, is there any built in function for converting an int to a byte? Thanks

Member Avatar for vegaseat
0
216
Member Avatar for etxulid

Hi, got a hex string 3E 65 72 3D 65 which first needs to be reversed to C7 6A E4 CB 6A then I need to move the 4 LSB in each byte to the 4 LSB in the next byte, need also to include 4 new bits (x) in …

Member Avatar for ghostdog74
0
198
Member Avatar for reRanger

Greetings: I have been working with code examples (from the good people on this site) and I have been learning quite a bit about Python and becoming more comfortable with. The program I am working on is being done in pieces, the GUI being really the primary area of problems …

Member Avatar for vegaseat
0
135
Member Avatar for swapnamishra

Hi, I have a function in Vc++ called Execute. I pass arguments to the function in hex and it returns the value in hex. >>> p.Execute(s1) The return value is handled in unicode format by python. u'\u1211\u2b08' I am supposed to convert the hex return value to BCD. Since python …

Member Avatar for Ene Uran
0
158
Member Avatar for jrcagle

Here is the code that burned me today. I'm re-writing my Sudoku solver to make it more "Pythonic" -- it was my first Python project, and the old code looks like translated C :lol: -- anyways, at one point, I need a dictionary to hold the possible locations in a …

Member Avatar for Ene Uran
1
132
Member Avatar for Gorilla

I am learing the book: Foundations of Python Network Programming - Apress 2004 When I tried this: [CODE] import socket, sys host = sys.argv[1] textport = sys.argv[2] #.... [/CODE] Then my IDE notify me this exception when debug: """IndexError: list index out of range: host = sys.argv[1] """ When I …

Member Avatar for Gorilla
0
127
Member Avatar for reRanger

Greetings: I am having trouble understanding how buttons launch actions such as, for example, loading a new (2nd) canvas. Suppose I have an application, a game, that will respond at some point to user imput via buttons: I have two buttons named "Yes" and "No"; now if the user selects …

Member Avatar for reRanger
0
177
Member Avatar for Matt Tacular

I have been trying to search the web to find a way to code a python program that can scan a given directory (ex. "C:\Documents and Settings\Matt\Desktop") and assign every file name found there (ex. "test.py" and "essay.doc") to a seperate variable or inside a list. Is there any way …

Member Avatar for Matt Tacular
0
399
Member Avatar for canerkocamaz

i am newbie and have a problem. i have a text file(rawfile.txt) like below. NAME:XXXXXXXXXXXX SURNAME:XXXXXXXXXXXX DATE:23.09.2006 A B C D E F G H (column names) 40 250 300 01.01.2006 13:43:21 250 12345678 KENTBANK 31 123 455 02.02.2006 11:22:43 450 CAPITALBANK . . . . PAGE 1 40 150 …

Member Avatar for vegaseat
0
96
Member Avatar for reRanger

Hello: I have been reading today about creating and using Sets. I have tried some sample code to see the results and I think it might be useful for me. I am in search of a data type that will be able to store strings and\ or values culled from …

Member Avatar for vegaseat
0
116
Member Avatar for akadri

Hi, I want to know how to convert a decimal integer into its binary form?? I came across a code which used BIT OPERATORS; I could not understand it. pLEASE HELP ME WITH THIS. Note: This is not my ASSIGNMENT PROBLEM. I know one way of converting decimal into binary …

Member Avatar for Ene Uran
0
176
Member Avatar for reRanger

Hello: I was wondering if anyone in this forum could point me in a direction (a link) where I could find practice projects (similar to Python [URL="http://www.daniweb.com/techtalkforums/thread32007.html"]Projects for the Beginner[/URL]) dealing specifically with C++ classes and their related functions? Thank-you in advance, reRanger

Member Avatar for Ene Uran
0
106

The End.