Tagged Questions
3
votes
1answer
1k views
Getting Python input from Webcam on raspberry pi?
i'm using a sony ps3 eye as webcam input on my pi for an OpenCL python program I'm writing, but for some reason no matter what i do the pi python compiler isn't accessing the webcam. Yet the same code ...
1
vote
0answers
101 views
setting stdin to wide character orientation in Python extension module
In a C Python extension module I'm using a library which does fwide(stdin,1). This is causing an EOFError when i call input() in Python code. When i avoid fwide(stdin,1) in module's C code, the python ...
1
vote
0answers
232 views
Filling Textboxes in Python via Mechanize Without Forms
I'm trying to fill textboxes in this site but mechanize can't find any form.Therefore i can't do anything on thoose textboxes cause they're in non-exists form.
I tried so different solutions but i ...
0
votes
0answers
100 views
Python Error: Unexpected EOF while Parsing
I'm writing a program that calls a list of bank accounts and print out their withdrawals, deposits, balances and transactions. I am running into a small error with my code on one of my inputs.
Now I ...
0
votes
0answers
45 views
How do I keep the line at the end of a input prompt?
I was curious on how to keep the line input at the end of the question asked. My professor said I can add the end = "" parameter after the first parameter but I am getting an unexpected keyword ...
0
votes
0answers
102 views
Python: GUI for allowing user to select multiple choices
I know of the raw_input() that gives a simple GUI, allowing for user input but the user has to type it.
I was wondering if there's something along the lines of the picture below
!
Thanks,
Tyro
0
votes
0answers
70 views
raw_input don't wait for input
i'm having some problems with raw_input() in python 2.7.1. the script ask some inputs to user inside secon for, the 2 first raw_input(). on the first loop, if the if if request.upper()=='S' or ...
0
votes
0answers
53 views
matrices python sums input reading files
I am new in the python word and I have a question for an issue which is giving me some problems.
Suppose I have two matrices (no matter the dimension). The first one will be an "input matrix" (let's ...
0
votes
0answers
91 views
Python Editor vs. Terminal. Terminal requires quotation marks on file names during input
def openFileReadRobust():
source = None
while not source: # still no successfully opened file
filename = input('What is the filename? ')
try:
source = open(filename)
except ...
0
votes
0answers
55 views
Write user content to a file from Django
Basically my problem is this:
my aim is to save into a a file a description entried by the user into a text input
The file has to be saved with the name of the ISBN
This is my code:
...
0
votes
0answers
77 views
I can't see what I'm typing to answer a raw_input line in my terminal
I'm writing a little game in python, using a console readLine method that looks like this:
class Console(object):
def clear(self):
#Method to clear the screen
os.system("clear")
...
0
votes
0answers
149 views
Interactive input in Python for a nethack/pong game hybrid
Basically I am trying to build a game of pong that plays in the shell. So far the thing stopping me is the user input. The code has to respond to key presses without having to press Return afterwards. ...
0
votes
0answers
349 views
get text from docx in python
How can you get the text from a docx file in python? Preferably, this would import it to a simple string. Obviously formatting in the original file can be ignored.
I understand the structure of a ...
0
votes
0answers
108 views
Any way to customize the input delimiter for fileinput.input?
Can anyone think of a way to change the input delimiter for the fileinput.input method?
(According to the docs, the default input delimiter is '\n', and it is not stripped.)
Thanks!
0
votes
0answers
335 views
Count occurances of user input (mouse keyboard) in Python?
I am attempting to make a small application which will display the amount of user input averaged per minute (I would like it to display an average based on keystrokes and mouse clicks, like an APM ...