-1
votes
0answers
16 views

Using checkboxes in python to select which files to write/export

I have a UI with 8 checkboxes. The idea is that depending on which ones are checked, it will choose what commands to send to telnet and what data files to return. Currently I just have 8 IF ...
0
votes
0answers
7 views

Can't find GTK gi package OS X

I recently installed the pygtk using Homebrew in an attempt to run the following program: #!/usr/bin/python3 from gi.repository import Gtk, GObject import time class TimerWindow(Gtk.Window): ...
0
votes
2answers
15 views

Python 2 to Python 3 Conversion of http Request

I am new to Python. I am trying to convert Python 2 code to Python 3. In my old code I have the following lines: # Create a cookiejar to store cookie cj = cookielib.CookieJar() # Create opener opener ...
0
votes
0answers
10 views

Issue with multiple sessions

In my application I'm using SQLAlchemy for storing most persistent data across app restarts. For this I have a db package containing my mapper classes (like Tag, Group etc.) and a support class ...
0
votes
1answer
37 views

Python 3, beautiful soup, get next tag

I have the following html part which repeates itself several times with other href links: <div class="product-list-item margin-bottom"> <a title="titleexample" ...
0
votes
0answers
6 views

SWIG: Passing binary data fails

I'm using a C-Library with python bindings generated by swig. I want to pass an arbitrary python string to the C-Library. This string contains unprintable characters, e.g: \xff\x0A\82 The C-Library ...
-4
votes
1answer
52 views

Seach a string from lines in file [closed]

Warning: In design 'packet_bch_calc_ctrl', cell 'pulse_width_4_i' does not drive any nets. (LINT-1) Warning: In design 'packet_bch_calc_ctrl', cell 'pulse_width_8_i' does not drive any nets. (LINT-1) ...
0
votes
1answer
24 views

Can't find module attribute, even though it exists

I have a very strange python problem with the built in http module. It successfully imports, but the http.client attribute does not exist? It is there in the python docs and my brother runs the code ...
0
votes
2answers
21 views

Possible to refresh webpage using Python and Jinja2 within HTML?

I'm writing an app to selectively list files in a directory. I'd like users to open an HTML file and get a message "Updating..." while Python walks through the directory and collects the information. ...
0
votes
2answers
25 views

Syntax Error in Line 1 of Python on Mac: python 3.3.2

I am having trouble because the syntax of my Python3 code is just fine. I just downloaded python 3.3.2 on my Mac 10.6.8. Here is my code in IDLE and then my TERMINAL error message. When I run the ...
1
vote
1answer
32 views

Random String Generation Based on Regular Expression-Python

According to the this random strings can be generated importing rstr module. import rstr rstr.rstr('ABC') but when I compile this following error is given? ImportError: No module named rstr I'm ...
1
vote
1answer
28 views

How to automatically get returncode from Popen after terminating child process?

I have a Python 3 question. How do I automatically get the returncode from a Popen object after the child process terminates? In short, I need an application to wait, but not be unresponsive (if ...
1
vote
0answers
18 views

Using AppleScript and iMacros Browser in Python to create .app an/or .exe

I just want to say that this site has been so helpful in my learning of scripting and programming. I've been lurking a long time and any time I have a question you guys have an answer! So here is a ...
2
votes
2answers
54 views

python3 print() in exec()

In python3, when I run >>> exec("","","") TypeError: exec() arg 2 must be a dict, not str >>> exec( "print('Hello')", print("World"), print("!") ) World ! Hello >>> ...
2
votes
3answers
30 views

How do I copy the contents of a bytearray to a list (Python)?

I have a dictionary which I convert to a bytearray, and since bytearrays are immutable (can't be modified) I try to make a list equal to each index in the bytearray. a = {1:'a', 2:'b', 3:'c'} b = ...

1 2 3 4 5 283
15 30 50 per page