Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #4K
~12.6K People Reached
Favorite Forums
Favorite Tags

16 Posted Topics

Member Avatar for convoluted

Hi all. I'm trying to capture video from a webcam and then display the feed in a wxPython GUI. I originally borrowed code from the OpenCV wiki ([url]http://opencv.willowgarage.com/wiki/wxpython[/url]), and since the code was for OpenCV 1.x I tried to adapt it for version 2.1. Here's my attempt to far: [CODE]import …

Member Avatar for lassytouton
0
2K
Member Avatar for linux

PIL is a separate module and is not included with Python. You can get PIL here: [url]http://www.pythonware.com/products/pil/[/url]

Member Avatar for richieking
0
4K
Member Avatar for convoluted

Here's my situation. Let's say I would like to create a thread that continually prints the number 1. When a button is clicked the value should then change to 2. My issue is that I'm unsure how I change a variable in an already running thread. Here's my code: [CODE] …

Member Avatar for Gribouillis
0
259
Member Avatar for convoluted

Hope you kind folk can spare a bit of advice. I'm trying to find a clever way to modifying a part of an image without replacing the image completely. For instance, let's say I have an image of a car and I would like to show the tire is flat. …

Member Avatar for richieking
0
176
Member Avatar for convoluted

Hey all. Let's say I would like to periodically poll for a change in a variable/device/etc. Obviously I would like to use an infinite loop and when need be, break from the loop to end the polling routine. What I don't what to do is peak my processor usage by …

Member Avatar for convoluted
0
195
Member Avatar for convoluted

Hello all. I'm trying to get a video feed in a wxPython GUI (under MS Windows) and thought about using OpenCV. There is a short tutorial on how to achieve this at this page: [url]http://opencv.willowgarage.com/wiki/wxpython[/url] (updated late 2009). The problem I'm having is trying to load the libraries to get …

Member Avatar for convoluted
0
380
Member Avatar for convoluted

Hey all. So I'm attempting to include mouse gestures as a part of a GUI I'm designing. I'm using the following code, and it works great HOWEVER only when the gesture is draw away from widgets/controls (such as buttons, statictext's, etc). If I start a gesture and cross the path …

Member Avatar for richieking
0
175
Member Avatar for convoluted

Hey all, Hopefully this will help someone with a problem I encountered. For a few days now I was looking for a way to concisely set the attributes to numerous controls without duplicating attribute code again and again. For example, let's say I have 3 static text controls and I …

Member Avatar for convoluted
0
179
Member Avatar for stack111

Here's a hint, look at the modulo operator (%) and utilize conditional statements (if).

Member Avatar for richieking
-1
175
Member Avatar for gunbuster363

wxWidgets does not support Python 3 (yet), so for me it's a deal breaker. I'm quite happy with Python 2.6, no need to switch to 3 at the moment.

Member Avatar for richieking
0
223
Member Avatar for Mollier

Take a real close look at the threading examples on this page (absolutely brilliant tutorial): [url]http://www.blog.pythonlibrary.org/2010/05/22/wxpython-and-threads/[/url] I recently developed wxPython code (using the first example in the link above) which updates a clock in the GUI every one second, and break from the loop by setting a flag value as …

Member Avatar for richieking
0
3K
Member Avatar for MarleyM

I was playing around with the same problem recently. The solution lies in threading. Basically you have a main loop and a secondary loop in a thread (for both the server and client). For example, the main loop can poll for received data whereas the threaded loop can wait for …

Member Avatar for convoluted
0
178
Member Avatar for gunbuster363

I really wish Python would be utilized more often, it is a really great language and has so much capability it's shocking. Sure, it's typically not as quick as C++ (heavy computation usually), but do we really care about the fastest execution times in everyday computing? Doubtful. I much prefer …

Member Avatar for convoluted
0
308
Member Avatar for convoluted

Hi all. I'm having a bit of trouble implementing the basics of a multi panel GUI. Basically I need a GUI that will act as an in-dash display for a car. The home screen will offer the user the ability to chose a selection of buttons. For example, the 'settings' …

Member Avatar for convoluted
0
287
Member Avatar for convoluted

Hello all. I'm having a bit of trouble trying to figure out how to access data I input into a ctypes array object. This is used with a hardware SDK, so I can't really change the data format at all. Here's the code: [CODE] from ctypes import * MsgDataType = …

Member Avatar for convoluted
0
2K
Member Avatar for convoluted

Hi all, Just started using Python a week or so ago, really enjoying it so far, but stuck with a project I'm working on. I'm trying to create a in-dash display system which uses Python to communicate with a piece of hardware and uses an HTML page to display the …

Member Avatar for SoulMazer
0
186

The End.