15,181 Topics

Member Avatar for
Member Avatar for Lolalola

Hi, i need from PDF extract text and images. Maybe you know python library? Thanks

Member Avatar for Gribouillis
0
51
Member Avatar for magnetic rifle

Hello, I have this code [CODE]#!/usr/bin/env python import csv import random alpha = 'abcdefghijklmnopqrstuvwxyz' e = range(0,99) x = random.sample(alpha,14) c = csv.writer(open("test2.csv", "wb")) c.writerow([x]) cr = csv.reader(open("test2.csv","rb")) for row in cr: print ', '.join(row) print "How many rows?" l = input() k = 1 while k < int(l): y …

Member Avatar for magnetic rifle
0
9K
Member Avatar for user45949219

Hey all! This is my first post on Dani's Web but I have long before used it as a resource for understanding different problems I have encountered with Python. I have only just started learning Python so please excuse my lack of understanding on this problem. [CODE]counter = 0 nameList …

Member Avatar for TrustyTony
0
154
Member Avatar for hughesadam_87

Hey everyone, I'm getting familiar with TkInter, and while it's a cool program, I'm having a hell of a time with keeping all the classes straight. As of now, I'm trying to build a program with a menubar and some other widgets. I can get the program working if I …

Member Avatar for hughesadam_87
0
212
Member Avatar for deb0and

Not sure what this error means "NameError: global name 'sessionid' is not defined" Any help would be greatly appreciated. Below is the code [CODE]import sys from socket import * import re import os from time import sleep print ("[*] BY THE POWER OF GRAYSKULL - I HAVE THE ROOTZ0R!\r\n" "[*] …

Member Avatar for deb0and
0
875
Member Avatar for zidaine

why is it that when i pop a dictionary in variable b, variable a does the same? And When i print variable a, the value is [{'b':2}]. How can i retain the value of variable a? [CODE] a=[{'a':1,},{'b':2,}] b = a b.pop(0)[/CODE]

Member Avatar for TrustyTony
0
137
Member Avatar for jodata26

What is the easy way to learn GUI Python, i mean where to choose pyGTK, pyQT , TkInter or what? Thanks

Member Avatar for SamarthWiz
0
379
Member Avatar for Archenemie

I feel like a total muppet for not being able to do what is likely a stupidly easy task. I have downloaded the MySQLdb.zip, unzipped it to my desktop and am trying to get it to work with my python 2.7 (its compliant). Can anyone give me a step by …

Member Avatar for griswolf
0
116
Member Avatar for piethon

I am a beginner in learning Python and I am currently reading "Learning Python the Hard Way." In one of its exercises, there's a code that says: [CODE]def bear_room(): print "There is a bear here." print "The bear has a bunch of honey." print "The fat bear is in front …

Member Avatar for GreenDay2001
0
1K
Member Avatar for TrustyTony
Member Avatar for Archenemie
1
676
Member Avatar for Niner710

I am new to Python and am looking for something in Python that is equivalent to parsing files in Perl. I have a text file as follows. [CODE] Blah.txt vcc = 2.6, clock = 1.5 Mhz vcc = 2.7, clock = 1.6 Mhz vcc = 2.8, clock = 1.7 Mhz …

Member Avatar for TrustyTony
0
183
Member Avatar for Lolalola

Hi, sometimes my one of function work too long. How i can break my function, if this function work longer than 3 seconds? thanks

Member Avatar for TrustyTony
0
195
Member Avatar for mikedeomon

The code below works but does not loop through each name in the txt file (loops only when i just want to print their names from the text file) , it only returns the details of the last user in the list rather than returning individual user details one by …

Member Avatar for woooee
0
194
Member Avatar for rhuffman8

I am still relatively new to Python and don't think I'm familiar/comfortable enough with my understanding of the datetime functions... I want to take just the current month from the datetime function so I can use the number to send the string of the month (ex, datetime would give me …

Member Avatar for griswolf
0
198
Member Avatar for Thropian

I was thinking of doing some simple animations in python,Tkinter and my biggest problem was getting things to move together. so I was wondering if there was a way to make say an arc and rectangle into one object to rotate and such. thanks in advance

Member Avatar for Thropian
0
181
Member Avatar for shurshot

Hi all, I'm new to this forum and I am also new to Python and coding in general. While I've gotten through basic tutorials on most general topics of Python such as series, dictionary, parameters, loops, and so forth I am still very much a newbie (as you will see …

Member Avatar for TrustyTony
0
343
Member Avatar for bf2loser

I have to strip anything that isn't a letter between a-z (lowercase only) out of a sentence. I wrote this [code=python]def breakPhrase(string): string=string.lower() for character in string: if ord(character) < 97 or ord(character) > 122: string=string.strip(character) return string[/code] and it works, but only if theres only one punctuation or non …

Member Avatar for sachin004
0
3K
Member Avatar for jordan0420

I am currently working on a project for my computer class and i am using it as an opportunity to learn pyobjc. i have a database file that includes a path to an image, reading this and getting the path to the image is no problem. my problem is, i …

0
108
Member Avatar for sys73r

so I'm new to the language so I've trying to do a vertical bar graph as shown below without luck, so far the only thing i've managed to do is to make it horizontally like this: [CODE] *********** ******* **** ********* **** [/CODE] which i do it by for v …

Member Avatar for sys73r
0
761
Member Avatar for now0pen

I am playing (and learning a lot) with pywinauto on my windows vista pc. Is there a module like pywinauto that I can use for ubuntu? Thanks!

Member Avatar for JasonHippy
0
37
Member Avatar for machine91

How do you write a python code that looks at a specific cell in a csv file? I have the following data in a csv file 1 0 100 2 11 150 3 0 189 4 0 195 5 21 245 I need to write a program in python that …

Member Avatar for JeoSaurus
0
3K
Member Avatar for saurav4ever

Hello everybody, I am Saurav Saha from India. I am not aware of python but just because i am working on a tool that is on python i got struck. I have many directories in which two files are kept 1. *.txt and 2. *.pdbqt I wanted a program that …

Member Avatar for Gribouillis
0
331
Member Avatar for flebber

Is there a way to do nested list comprehension? for example I can square a range of numbers, even only. [CODE][x*x for x in range(1,20) if x % 2==0][/CODE] but what if I want to square the even and times the odd by 3. [CODE][x*x for x in range(1,20) if …

Member Avatar for richieking
0
154
Member Avatar for mukthyar1255

[B]Hi , I hope you people will me, to send mail using python .i searched for this program in google i found lot of programs ,when i run this programs on windows7,run successfully, but i didn't get mail to destination(recivers) mail account, please send me send mail python script.which is …

Member Avatar for griswolf
0
154
Member Avatar for yuvalm2

I am about to begin working on a program serving simultanuously a handfull of non-technical clients. I am still trying to select my user interface, and would like your suggestions, given that my main program would be written mainly in Python. I would suppose that most of the actions requested …

Member Avatar for woooee
0
222
Member Avatar for hughesadam_87

Hello all, Following the guide on sourceforge, I've created several pyplot programs which have nice event handling. I'm able to press keys on my keyboard and the plots advance and change. The backend for this program is GTKagg. There are several instances where I can change parameters in the plot …

Member Avatar for hughesadam_87
0
115
Member Avatar for nnaorin19

Hello! does any1 knows how to convert captured hex packets in mac frame type(control, management, data) and their subtypes? please let me know thanks

0
39
Member Avatar for heavy.is.happy

Hi. I have a very very easy problem in my program. The problem is that i want to load another page via press a button. It till work like any webbrowser. First och gonna write in the URL in a textbox, then press a button named Go or Enter or …

Member Avatar for heavy.is.happy
0
215
Member Avatar for yuvalm2

I am running some multi-process program, its various processes being python interpreter instances. I wish to be able to identify which process is which in the task manager. How may I perform that? I use the multi-processing module for this application.

Member Avatar for woooee
0
67
Member Avatar for rickyfre

I bet someone already asked this but I can't find the thread. I am using windows XP home edition. I loaded python 2.6.6 off the web as it is the same version some of my code is written in. When I click on the idle GUI I get no response. …

Member Avatar for vegaseat
0
102

The End.