User Profile

Collapse

Profile Sidebar

Collapse
mykeaster
mykeaster
Last Activity: Apr 17 '08, 01:08 PM
Joined: May 15 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 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??
    See more | Go to post

  • mykeaster
    started a topic SWiG and Python

    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??
    See more | Go to post

  • 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...
    See more | Go to post
    Last edited by bartonc; Jun 7 '07, 05:47 PM. Reason: change php tags to code=python tags

    Leave a comment:


  • Yes, The code above does exit the thread on a ^C, but it starves the transmit thread. My main problem is preventing that starvation.
    See more | Go to post

    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
    ...
    See more | Go to post
    Last edited by bartonc; May 17 '07, 11:29 PM. Reason: a

    Leave a comment:


  • mykeaster
    started a topic Using control characters to break out of threads

    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?
    See more | Go to post

  • mykeaster
    replied to What is your OS and Python Version
    OS: Ubuntu Feisty
    Python: 2.5.1
    Editor: Scribes
    Add-Ons: pyserial, wxWidgets
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...