User Profile
Collapse
-
C#-WPF-APP: Making Image Control Resize with Window
In .NET Forms you could Dock a control to an edge of it's parent container. However there does not seem to be anything like this in WPF. Right now I am writing an app that needs to run Full-Screen, but the main Image I am trying to use is not resizing with the rest of the window when I put it in Full-Screen Mode. This Image is incredibly large (2500x1900) so when I set the Height and Width to AUTO the Image blows up. Any ideas or suggestions?? -
SWiG and Python
I have followed the SWiG example to create a python module, but the final step "ld -shared x.o y.o -o _x.o" is not working properly. I am working in Linux. Any ideas?? -
Finaly got the threading portion correct, and now have my read and write processes running simultaneously. However I am coming into a problem when I use a function inside of the thread, and I cannot determine what the problem is. See the following code:
[CODE=python]def Reader(port, lock, bertpat):
"""
Reads data off the serial port
"""
frames = 0
print "in... -
Yes, The code above does exit the thread on a ^C, but it starves the transmit thread. My main problem is preventing that starvation.Leave a comment:
-
Here is the code that I am working with:
...Code:import threading, serial class TxThread(threading.Thread): """ Serial Tx Thread Class """ def __init__(self, sp, lock): """ Constructor, setting initial variables """ self._stopevent = threading.Event() self._sleeptime
Leave a comment:
-
Using control characters to break out of threads
I am working on a program that uses two threads to Read and Write to a serial port. I am able to use ^C to break out of the main thread, but the two worker threads still run. Is there any method that I can use where my threads will detect a ^C and kill themselves, or something to that regard? -
OS: Ubuntu Feisty
Python: 2.5.1
Editor: Scribes
Add-Ons: pyserial, wxWidgetsLeave a comment:
No activity results to display
Show More
Leave a comment: