- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
16 Posted Topics
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 … | |
Re: PIL is a separate module and is not included with Python. You can get PIL here: [url]http://www.pythonware.com/products/pil/[/url] | |
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] … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
Re: Here's a hint, look at the modulo operator (%) and utilize conditional statements (if). | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
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' … | |
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 = … | |
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 … |
The End.