15,185 Topics

Member Avatar for
Member Avatar for blue_misfit

Hi folks! This is my first python script! It will be executed within AvsP, which is an application for writing AviSynth scripts. It provides a full Python interface, for macros and other operations. Here's the code I have now: [code] # batchCreateD2Vs # by Derek Prestegard # Last Modified 4/3/08 …

Member Avatar for woooee
0
143
Member Avatar for jgritty

I'm sure this is stupidly simple, but I am trying to add words to two different dictionary files I have created. I think my problem is here: [code=python] myDict = Dictionary.Dictionary() myDict2 = Dictionary.Dictionary() [/code] Because when I write out the files, it writes the same thing to both files, …

Member Avatar for jgritty
0
281
Member Avatar for bbmatten

I am very new to Python and am about three weeks behind due to textbook problems. I am having a problem with one programming exercise. I have no idea how to even begin writting a program to determine the distance to a lightning strike based on the time elapsed between …

Member Avatar for vegaseat
0
73
Member Avatar for hudson5cp

Hi all, im a beginner to programming Python with Tkinter. I have a windows with 2 form: 1 Listbox and 1 Textarea that load a txt file. The Listbox contains a name of chapters. How can I make because click on the listbox scroll the text inside the textarea a …

Member Avatar for hudson5cp
0
747
Member Avatar for soomedh

Hi I am facing a problem with listvariable of listbox. I have a global sequence is python. which I am assignning as listvarible to a listbox widget. Listbox is neither showing default nor runtime values of sequence. Can anybody help

Member Avatar for soomedh
0
177
Member Avatar for sreelatha

Hi, I m a newbiee to python, I would like to write one program, and i want that program should run automatically when my system time is 10 am. Is it possible to do it, if so can any one throw a light to help me Any kind of help …

Member Avatar for sreelatha
0
141
Member Avatar for erezlevi

hi, my name is erezlevi, and I want to know how can I create object and find examples about it. I need a way to register my script to windows so when using this: i=create (erez.levi) with i .Initialize (0) .Senddata ("12345") .Terminate () how can I write an Python …

Member Avatar for sneekula
0
94
Member Avatar for heshan

Hi All, I'm pretty new to python and still getting to know how python works. I want to associate some metadata to a function. In javascript I'm used to associating metadata with a function as follows. [code] foo.bar = "foobar"; function foo(){ } [/code] Whats the normal python practice to …

Member Avatar for bumsfeld
0
81
Member Avatar for fredomondi

the code is on a nokia N70 platform using python.the code is supposed to generate speech from written text.could anyone help me please. the code import appuifw,audio text=appuifw.query(u"type a word:","text") audio.say(text) the error message is: line 3,in? audio.say(text) AttributeError:'module' object has no attribute say

Member Avatar for bumsfeld
0
31
Member Avatar for srinivasysr2003

Hi, I am new to Python script programming and I have Python script also. I have below method which was written in C (Framemaker Development Kit). F_ApiSave(VarBookId, VarOutputFLBPDFFileAbsPath, params, *returnparams) "params" and "returnparams" arguments are of Object "F_PropValsT" and want to use above method from Python to send the values. …

0
52
Member Avatar for Defcon106

I was looking into a python program for the PSP. Is it worth downloading? Will it help me to learn the program when I dont have a PC handy? Also does anyone know if you can install Python to a portable harddrive and run it from any computer? Thanks in …

Member Avatar for Defcon106
0
74
Member Avatar for gormmark

hia guys i was just wondering if anyone can tell me if its possable to get unicode from a raw_input command. Im trying to put together a small piece of code to help me change decompyled russian text back to readable text, the piece of code im using at the …

0
52
Member Avatar for watermark

I am very new to both Python and programming. I am in need of some help with this small project that I am working on. I have several text files in a directory. I want to compile them into one master file. There is a common variable, x and y …

Member Avatar for linux
1
174
Member Avatar for fredomondi

than for the reply,bt i am using a Nokia N70 platform and not a PC.the python version am using is 1.2. the code i had earlier written but didn,t work is below import appuifw,audio text=appuifw.query(u"type a word:","text") audio.say(text) thanks

Member Avatar for ZZucker
0
28
Member Avatar for mcenley

Hi friends, My problem definition is as follows: Creating a class name called "Kangaroo". 1] An __init__ method that initializes an attribute named pouch_contents to an empty list. 2]A method named by creating put_in_pouch that takes an object of any type and adds it to pouch_contents. The following is the …

Member Avatar for a1eio
0
180
Member Avatar for linux

When you create an interface in Glade, how do you export it as code to Python? Or to you need to import gtk.glade and call all of your widgets that way?

Member Avatar for 1337455 10534
0
58
Member Avatar for fredomondi

hi.could you please help me to write a code in python that can convert written texts into speech. i am using nokia N70 to develop the program . thanks

Member Avatar for vegaseat
0
125
Member Avatar for haukee

Hi there everybody, I really have my difficulties with loops ;) I want to creat a cube with 10 x10 x1 (1 is like thickness, but as I have to create a mesh subsequently I can't do it with geometric properties) Plz help :)

Member Avatar for vegaseat
0
130
Member Avatar for nish88

have you ever heard of pycage.???? i want to have its windows version. if it exist????;) can you please give me the links where i can download it and get some tutorials about it.:P thank you very much

Member Avatar for vegaseat
0
111
Member Avatar for Metahuman

I have to output a collection of strings and integer values such that there is one string followed by an integer in one line. the problem i am having is to arrange it properly on the display Example: I am trying to print: or rather what i am able to …

Member Avatar for BearofNH
1
177
Member Avatar for nish88

hi everyone i'm trying to make an animation and at the end i am getting a rectangle by using lots of small rectangle. it is not so attractive. what i want is that while the animation is being performed,[B] some of the small rectangles that i am using are deleted …

Member Avatar for nish88
0
84
Member Avatar for strictlycustom

I'm trying to call up the pay, overtime, and totalpay that I get out of the second function. How do I do that? I think that's my problem. I get the following errors when I run the program: [code]How many hours did you work? 50 What is your rate of …

Member Avatar for strictlycustom
0
3K
Member Avatar for kharan

Hello: Please help me to solve this: >>> def printA(): ... try: print a ... except NameError: print 'variable undefined' ... >>> printA() variable undefined >>> a = "foo" >>> printA() foo >>> I tried to do the same think by importing a file "test.py" which has the function 'printA()' …

Member Avatar for vegaseat
0
102
Member Avatar for tsic

hello, In my project, which is about communication between server and client, we want to test the Request of the client. All requests and answers are from the beginning saved in a file.txt When the server is executed, we want to import these data to a table to facilitate the …

0
56
Member Avatar for a1eio

Hi, I'm wondering how your supposed to find out a widget's width in tkinter.. Little example code to explain (doesnt do anything at all) [code=python] class CustomWidget(Tkinter.Frame): def __init__(self, master, **kw): apply(Tkinter.Frame.__init__, (self, master), kw) self.masterWidth = # ???? Totally stuck, tried obvious things like master.width class MainWindow(Tkinter.Toplevel): def __init__(self, …

Member Avatar for a1eio
0
179
Member Avatar for Laurence26

I was wondering if you could add new fonts to pygame and how you should do it. Does any one know how to do it?

Member Avatar for a1eio
0
98
Member Avatar for linux

Hey, I'm beginning to write a MIDI-sequencer/sampler kind of application (ie: LMMS, FL Studio, RoseGarden) that relied solely on ALSA. Not JACK. However, if I distribute the application, I wouldn't want a huge application due to uncompressed WAV samples in the piano roll (this would be a pseudo-synth). So does …

0
65
Member Avatar for msaenz

Greetings, I have this date string that is given to me from somelses code 20080326 and I want to convert it to be MMddYYYY and I get this error: Caught Exception: ValueError:time data did not match format: data=20080326 fmt=%m%d%Y File "/home/gateway/scripts/python/py-allston.egg/main_template.py", line 91, in decorated_main File "db.py", line 24, in …

Member Avatar for msaenz
0
72
Member Avatar for terron

I'm trying to make something that once it is disconnected will automatically try to reconnect. I'll add some more features in later so it doesn't hammer the server but right now I just want to keep it simple and get that part working. The problem is that when I use …

0
67
Member Avatar for sam210

Okay, so I am creating a password storage system. I have everything but a few last functions. I need to be able to search for different sites and view all sites in a choicebox. for editting. I've tried a few different things but I just can't get it. the first …

Member Avatar for sam210
0
163

The End.