The Artima Developer Community
Sponsored Link

Python Buzz Forum
A Human In The Loop

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ben Last

Posts: 247
Nickname: benlast
Registered: May, 2004

Ben Last is no longer using Python.
A Human In The Loop Posted: Jun 18, 2004 10:47 AM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Ben Last.
Original Post: A Human In The Loop
Feed Title: The Law Of Unintended Consequences
Feed URL: http://benlast.livejournal.com/data/rss
Feed Description: The Law Of Unintended Consequences
Latest Python Buzz Posts
Latest Python Buzz Posts by Ben Last
Latest Posts From The Law Of Unintended Consequences

Advertisement
The Python twain module has a shortcoming.  It's summed up by this quote in the documentation; "The twain module can only be used in an application with a message loop".  This is (as far as my limited research can find out) in the design of the whole TWAIN system on Windows; as image acquisition progresses, the calling application is notified of progress via a series of messages.

On Windows, that means you need a window, since messages are sent to windows.  Which means Windows has to be logged on, more or less  Now, maybe I'm just a tired old Unix hound who's spent too much of his life writing daemon code that executes in the dark bowels of the machine where no human could be or would want to be, but I rather like systems that can automate stuff without assuming there's someone sat in front of the damn box.  What if there's been a powerfail and the system isn't logged in?  Should all Windows servers require a human whose job is to scurry around them and check for rogue dialogue boxes?

No, of course not.  Yet it's tedious and annoying that I can't write my little Python script to make my camera take a picture every hour without messing in wxWindows.  Hey ho.

Oh, and if you don't read the excellent Rupert Goodwin's Diary on a Friday, you should.

Read: A Human In The Loop

Topic: IronPython Previous Topic   Next Topic Topic: Conjuring a Fireball

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use