Re: do people really complain about significant whitespace?

2006-08-10 Thread H J van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote: | On 8 Aug 2006 04:59:34 -0700, [EMAIL PROTECTED] declaimed the | following in comp.lang.python: | | > | > Some of it may be a reaction from "old-timers" who remember FORTRAN, | > where (if memory serves), code had to start in column 16 and code | >

Re: Is there an obvious way to do this in python?

2006-08-07 Thread H J van Rooyen
"Bruno Desthuilliers" <[EMAIL PROTECTED]> H J van Rooyen a écrit : > "Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote: > (snip) > | If you go the web application route, each "login" would use a cookie > | to control session, so the application

Re: Is there an obvious way to do this in python?

2006-08-07 Thread H J van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote: | On Sat, 5 Aug 2006 11:20:59 +0200, "H J van Rooyen" | <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: | | > | > no such luck - reality will probably be Linux for server, and a horrible mix

Re: testing array of logicals

2006-08-07 Thread H J van Rooyen
"Janto Dreijer" <[EMAIL PROTECTED]> wrote: | | Janto Dreijer wrote: | > John Henry wrote: | > > Simon Forman wrote: | > > > > | > > > > False not in logflags | > > > > | > > > | > > > Or, if your values aren't already bools | > > > | > > > False not in (bool(n) for n in logflags) | > > | > > Ve

Re: Enhanced Listbox

2006-08-05 Thread H J van Rooyen
"drodrig" <[EMAIL PROTECTED]> wrote: (top posting fixed) | H J van Rooyen wrote: | > "drodrig" <[EMAIL PROTECTED]> | > | > | > | My apologies if this question has been asked an answered. | > | | > | I am looking for a tkinter grid control or

Re: Is there an obvious way to do this in python?

2006-08-05 Thread H J van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote: 8<-- | There may be something in-between. IFF this is to be used strictly | on an internal LAN with uniform architecture (all Linux or all WinXP) | for the client machines. You'd have to set up something so a reboot no s

Re: How to force a thread to stop

2006-08-04 Thread H J van Rooyen
"Gerhard Fiedler" <[EMAIL PROTECTED]> wrote: | On 2006-08-04 02:33:07, H J van Rooyen wrote: | | > The next step above the 555 is a PIC... then you can steal power from the | > RS-232 line - and its a small step from "PIC" to "PIG"... | | I see... you

Re: Is there an obvious way to do this in python?

2006-08-04 Thread H J van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote: | On Thu, 3 Aug 2006 16:50:15 +0200, "H J van Rooyen" | <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: | | > | > This is broadly what I had in mind, yes - but sort of down to a transactio

Re: Enhanced Listbox

2006-08-04 Thread H J van Rooyen
"drodrig" <[EMAIL PROTECTED]> | My apologies if this question has been asked an answered. | | I am looking for a tkinter grid control or enhanced listbox that can | act as a "receipt" for a cash register program. I would like the widget | to contain a visible grid of columns and rows. I've trie

Re: Is there an obvious way to do this in python?

2006-08-04 Thread H J van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote: | On Thu, 3 Aug 2006 16:50:15 +0200, "H J van Rooyen" | <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: | > Now part of the reason I would like to go the transaction type route instead of | &g

Re: Is there an obvious way to do this in python?

2006-08-04 Thread H J van Rooyen
"Nick Vatamaniuc" <[EMAIL PROTECTED]> wrote: | Hendrik, | | ---snip--- | Now part of the reason I would like to go the transaction type route | instead of the "per user" route is robustness and maintainability, and | the ability it would give me to introduce new transaction types easily | - as

Re: Is there an obvious way to do this in python?

2006-08-04 Thread H J van Rooyen
From: "Bryan Olson" <[EMAIL PROTECTED]> | H J van Rooyen wrote: | [...] | > This is broadly what I had in mind, yes - but sort of down to | a transaction | > level - this user does invoicing, this one enters cheques, | this one does credit | > notes, and their su

Re: How to force a thread to stop

2006-08-04 Thread H J van Rooyen
"Gerhard Fiedler" <[EMAIL PROTECTED]> wrote: | On 2006-08-03 06:07:31, H J van Rooyen wrote: | | > Thanks - will check it out - seems a lot of money for 555 functionality | > though | > | > Especially if like I, you have to pay for it with Rand - I have started |

Re: Is there an obvious way to do this in python?

2006-08-04 Thread H J van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote: | On Thu, 3 Aug 2006 14:05:19 +0200, "H J van Rooyen" | <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: | | > What I mean by this is that the server does stuff that I think belongs on the | >

Re: Is there an obvious way to do this in python?

2006-08-04 Thread H J van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote: | On Thu, 3 Aug 2006 09:17:41 +0200, "H J van Rooyen" | <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: | | > Can I not use the ssl module for encrypting the connections? - Please also | >

Re: Is there an obvious way to do this in python?

2006-08-04 Thread H J van Rooyen
"Bruno Desthuilliers" <[EMAIL PROTECTED]>wrote: | H J van Rooyen wrote: | > "Bruno Desthuilliers" <[EMAIL PROTECTED]> wrote: | (snip) | > |> If my original post was unclear I am sorry - the point I want answered, if | > |> possible, is how to mak

Re: How to force a thread to stop

2006-08-04 Thread H J van Rooyen
"Carl J. Van Arsdall" <[EMAIL PROTECTED]> wrote: | Alex Martelli wrote: | > H J van Rooyen <[EMAIL PROTECTED]> wrote: | > | > | >> "Paul Rubin" <http://[EMAIL PROTECTED]> Writes: | >> | >> | "H J van Rooyen" <[EMAI

Re: Running queries on large data structure

2006-08-04 Thread H J van Rooyen
"Christoph Haas" <[EMAIL PROTECTED]> wrote" | On Wednesday 02 August 2006 22:24, Christoph Haas wrote: | > I have written an application in Perl some time ago (I was young and | > needed the money) that parses multiple large text files containing | > nested data structures and allows the user to

Re: Is there an obvious way to do this in python?

2006-08-03 Thread H J van Rooyen
"Nick Vatamaniuc" <[EMAIL PROTECTED]> wrote: |HJ, | |As far as GUI language/library goes: | |Some people suggested HTML, but I think HTML is a very awkward way to |create a good looking dynamic GUI that is _both_ easy to use and fast |and easy to design (which is what you would want probably).

Re: Is there an obvious way to do this in python?

2006-08-03 Thread H J van Rooyen
"Bruno Desthuilliers" <[EMAIL PROTECTED]> wrote: |H J van Rooyen wrote: |> "Bruno Desthuilliers" <[EMAIL PROTECTED]> wrote: |> |> 8<--- |> |You'll at least need bits of SQL (but SQLAlchemy may hi

Re: Is there an obvious way to do this in python?

2006-08-03 Thread H J van Rooyen
"Yu-Xi Lim" <[EMAIL PROTECTED]> wrote: | H J van Rooyen wrote: | > | | > |> And I would like to make this flexible, so that it becomes easy to introduce | > new | > |> transactions, without having to run around updating the code in all the user | > |>

Re: How to force a thread to stop

2006-08-03 Thread H J van Rooyen
"Alex Martelli" <[EMAIL PROTECTED]> Wrote: | H J van Rooyen <[EMAIL PROTECTED]> wrote: | | > "Paul Rubin" <http://[EMAIL PROTECTED]> Writes: | > | > | "H J van Rooyen" <[EMAIL PROTECTED]> writes: | > | > *grin* - Yes of co

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-03 Thread H J van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote: | On Wed, 02 Aug 2006 22:25:35 +0200, Jarek Zgoda <[EMAIL PROTECTED]> | declaimed the following in comp.lang.python: | | > | > At the end of day we will be these who count bodies. ;) | | o/~ Listen children, to a story | that was written long a

Re: Is there an obvious way to do this in python?

2006-08-03 Thread H J van Rooyen
"Bruno Desthuilliers" <[EMAIL PROTECTED]> wrote: |H J van Rooyen a écrit : |> Hi, |> |> I want to write a small system that is transaction based. |> |> I want to split the GUI front end data entry away from the file handling and |> record keeping. |> |>

Re: Is there an obvious way to do this in python?

2006-08-03 Thread H J van Rooyen
"Yu-Xi Lim" <[EMAIL PROTECTED]> wrote: | Simon Forman wrote: | >> Or has all this been done already? - and no I don't want a web server and php | >> and browsers and Java and html or xml... - I want to write something that works | >> simply and reliably - its just short message accounting type d

Re: serial ports, threads and windows

2006-08-03 Thread H J van Rooyen
"Tom Brown" <[EMAIL PROTECTED]> | Hey people, | | I've written a python app that r/w eight serial ports to control eight devices | using eight threads. This all works very nicely in Linux. I even put a GUI on | it using PyQt4. Still works nicely. | | Then I put the app on on a virtual Windows m

Re: Is there an obvious way to do this in python?

2006-08-03 Thread H J van Rooyen
"Simon Forman" <[EMAIL PROTECTED]> wrote: | H J van Rooyen wrote: | > Hi, | > | > I want to write a small system that is transaction based. | > | > I want to split the GUI front end data entry away from the file handling and | > record keeping. | > | >

Re: Is there an obvious way to do this in python?

2006-08-03 Thread H J van Rooyen
"Nick Vatamaniuc" <[EMAIL PROTECTED]> wrote: | HJ, | | As someone already posted, the backend sounds very much like a | database, so why not use a database: transactions, specific views for | different users, limited access and so on = database! | Give PostgresSQL a try... *nods* - looks like I

Is there an obvious way to do this in python?

2006-08-02 Thread H J van Rooyen
Hi, I want to write a small system that is transaction based. I want to split the GUI front end data entry away from the file handling and record keeping. Now it seems almost trivially easy using the sockets module to communicate between machines on the same LAN, so that I want to do the record

Re: BCD List to HEX List

2006-08-02 Thread H J van Rooyen
"John Machin" <[EMAIL PROTECTED]> wrote: | [EMAIL PROTECTED] wrote: | | >My version assumes three subroutines: extracting | > nibbles, shifting, and adding, Those are pretty simple, so I asked | > if he needed them rather than presenting them. | > Assuming we have | > them, the algorithm is three

Re: Strange Tkinter Grid behaviour Problem

2006-08-02 Thread H J van Rooyen
"Peter Otten" <[EMAIL PROTECTED]> wrote: |H J van Rooyen wrote: | | > Hi, | > | > Still struggling with my GUI exercise - | > | > I have the following lines of code in a routine that is bound at | > to an instance of Entry : | > | > self

Strange Tkinter Grid behaviour Problem

2006-08-01 Thread H J van Rooyen
Hi, Still struggling with my GUI exercise - I have the following lines of code in a routine that is bound at to an instance of Entry : self.disp.Amount_des = Label(self.disp, text = self.dis_string, fg = 'black', bg = 'yellow') self.disp.Amount_des.grid(row = self.rownum, column

Re: Nested function scope problem (- variable definition branch)

2006-07-30 Thread H J van Rooyen
"Gerhard Fiedler" <[EMAIL PROTECTED]> wrote: 8<- | I'm not sure where you're trying to go. I think that most people (and even | Bruno, who argued this issue most strongly) call Python variables | "variables" every now and then, or maybe even usually. But it was hel

Re: How to force a thread to stop

2006-07-30 Thread H J van Rooyen
"Damjan" <[EMAIL PROTECTED]> wrote: | > | A common recovery mechanism in embedded systems is a watchdog timer, | > | which is a hardware device that must be poked by the software every | > | so often (e.g. by writing to some register). If too long an interval | > | goes by without a poke, the WD

Re: sending bytes to parallel port

2006-07-29 Thread H J van Rooyen
"Timothy Smith" <[EMAIL PROTECTED]> wrote: | Grant Edwards wrote: | > On 2006-07-28, Timothy Smith <[EMAIL PROTECTED]> wrote: | > | > | >> i've been trying to send an 8 byte string to my parallel port | >> under freebsd. the purpose is it to control a relay board. the | >> board simply responds t

Re: How to force a thread to stop

2006-07-29 Thread H J van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote: | On Fri, 28 Jul 2006 08:27:18 +0200, "H J van Rooyen" | <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: | | > | > Dennis - did your OS not have a ticker running? | > | That ancient machine,

Re: How to force a thread to stop

2006-07-29 Thread H J van Rooyen
"Paul Rubin" <http://[EMAIL PROTECTED]> Writes: | "H J van Rooyen" <[EMAIL PROTECTED]> writes: | > *grin* - Yes of course - if the WDT was enabled - its something that | > I have not seen on PC's yet... | | They are available for PC's, as plug

Re: HERE I BUILT A QUICK MATRIX TOOOK 5 MINS

2006-07-29 Thread H J van Rooyen
"Grant Edwards" <[EMAIL PROTECTED]> wrote: | On 2006-07-28, Paul McGuire <[EMAIL PROTECTED]> wrote: | >> ...USING A INFINITE MAGENTIC | >> FIELD!!! | > | > I have a vision of a sweeping magenta fabric rippling through the cosmos. | > | > Perhaps a mauvic, cyanic, or even aubergenic field would be

Re: How to force a thread to stop

2006-07-28 Thread H J van Rooyen
"Paul Rubin" <http://[EMAIL PROTECTED]> Wrote: | "H J van Rooyen" <[EMAIL PROTECTED]> writes: | > So on a processor that does not have protected instructions - if an | > idiot writes something to the following effect : | > | > *instruction

Re: Fastest Way To Loop Through Every Pixel

2006-07-28 Thread H J van Rooyen
"Paul McGuire" <[EMAIL PROTECTED]> wrote: | "H J van Rooyen" <[EMAIL PROTECTED]> wrote in message | news:[EMAIL PROTECTED] | > "Paul McGuire" <[EMAIL PROTECTED]> wrote: | > | > | Even downer-and-dirtier, you could approximate 30 with 3

Re: Fastest Way To Loop Through Every Pixel

2006-07-28 Thread H J van Rooyen
"Paul McGuire" <[EMAIL PROTECTED]> wrote: | Even downer-and-dirtier, you could approximate 30 with 32, 59 with 64, and | 11 with 8, and do bit-shifting instead of multiplying: | | def darkness(img,x,y): | return (RedVal(img,x,y) << 5) + (GreenVal(img,x,y) << 6) + | (BlueVal(img,x,y) << 3) | |

Re: Threads vs Processes

2006-07-28 Thread H J van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]> Wrote: | On Thu, 27 Jul 2006 09:17:56 -0700, "Carl J. Van Arsdall" | <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: | | > Ah, alright, I think I understand, so threading works well for sharing | > python objects. Would a scenario for this

Re: How to force a thread to stop

2006-07-28 Thread H J van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]> Wrote: | On Thu, 27 Jul 2006 08:48:37 -0400, Jean-Paul Calderone | <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: | | > | > If a thread never performs any I/O operations, signal handlers will still | > get invokes on the arrival of a signa

Re: Tkinter pack Problem

2006-07-27 Thread H J van Rooyen
"Simon Forman" <[EMAIL PROTECTED]> wrote: | I find the "Tkinter reference: a GUI for Python" under "Local links" on | this page http://infohost.nmt.edu/tcc/help/lang/python/tkinter.html to | be very helpful. It has a decent discussion of the grid layout | manager. | | HTH, | ~Simon Thanks am c

Re: How to force a thread to stop

2006-07-26 Thread H J van Rooyen
"Carl J. Van Arsdall" <[EMAIL PROTECTED]> wrote: 8< | point). Its not only important that the threads die, but that they die | with grace. There's lots of cleanup work that has to be done when | things exit or things end up in an

Re: Tkinter pack Problem

2006-07-26 Thread H J van Rooyen
"Eric Brunel" <[EMAIL PROTECTED]> wrote: |On Wed, 26 Jul 2006 12:46:39 +0200, H J van Rooyen <[EMAIL PROTECTED]> |wrote: | |> Hi, |> |> I am struggling to get the pack method to do what I intend. |> I am trying to display user input in a seperate window, along w

Tkinter pack Problem

2006-07-26 Thread H J van Rooyen
Hi, I am struggling to get the pack method to do what I intend. I am trying to display user input in a seperate window, along with a little description of the field, something like this: Current entry Company : entered co. name First entry : entered stuff

Re: Python for Embedded Systems?

2006-07-15 Thread H J van Rooyen
"Carl J. Van Arsdall" <[EMAIL PROTECTED]> Wrote: To: Sent: Friday, July 14, 2006 7:36 PM Subject: Re: Python for Embedded Systems? | Grant Edwards wrote: | > On 2006-07-14, Jack <[EMAIL PROTECTED]> wrote: | > | >> Is there a Python packaging that is specifically for | >> embedded systems? ie, v

Re: How can get button's name when cursor move over the button ona web page?

2006-07-15 Thread H J van Rooyen
"Steve Holden" <[EMAIL PROTECTED]> wrote: 8<(snip)- |Questions nowadays have no idea which groups they belong to. When *I* |was a lad questions had to know their place. A question that appeared in ||the wrong group would be torched with flames that could be guaranteed to |b

Re: Python is fun (useless social thread) ;-)

2006-06-19 Thread H J van Rooyen
Bruno wrote: 8<(snip)-- | The answer is 42. That's all you need to know. Right on, Ford Prefect !!! What's for Lunch? - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: a good programming text editor (not IDE)

2006-06-17 Thread H J van Rooyen
Tim Chase wrote: | > No need to argue. I started with vim, and finally switched to | > emacs less than one year later. | | Both are very-much-so good editors. I made the opposite switch | from emacs to vim in less than a year. Both are good^Wgreat | editors, so one's decision to use one over the

Re: Intermittent Failure on Serial Port (Other thread code)

2006-06-13 Thread H J van Rooyen
I would like to publicly thank Serge Orloff for the effort he has put in so far and his patience... He is a Scholar and a Gentleman. Serge Orloff wrote: | H J van Rooyen wrote: | | > Note that the point of failure is not the same place in the python file, but it | > is according to the tra

Re: Intermittent Failure on Serial Port (Trace Result)

2006-06-12 Thread H J van Rooyen
8<-- (snip) old fail: | | > | > Traceback (most recent call last): | | > | > File "portofile.py", line 232, in ? | | > | > ret_val = main_routine(port, pollstruct, pfifo) | | > | > File "portofile.py", line 108, in main_routine | | > | > send_nak(port, timeout) # so

Re: Intermittent Failure on Serial Port

2006-06-12 Thread H J van Rooyen
Serge Orlof wrote: | H J van Rooyen wrote: | > Serge Orloff wrote: | > | > | H J van Rooyen wrote: | > | > Traceback (most recent call last): | > | > File "portofile.py", line 232, in ? | > | > ret_val = main_routine(port, pollstruct, pfifo) | >

Re: Intermittent Failure on Serial Port

2006-06-10 Thread H J van Rooyen
Serge Orloff wrote: | H J van Rooyen wrote: | > Traceback (most recent call last): | > File "portofile.py", line 232, in ? | > ret_val = main_routine(port, pollstruct, pfifo) | > File "portofile.py", line 108, in main_routine | > send_nak(port,

Intermittent Failure on Serial Port

2006-06-10 Thread H J van Rooyen
Hi All, I am writing a polling controller for an RS-485 line that has several addressable devices connected. It is a small access control system. All is well- the code runs for anything from three hours to three days, then sometimes when I get a comms error and have to send out a nak character, it

Re: python vs perl lines of code

2006-05-23 Thread H J van Rooyen
on Friday, May 19, 2006 11:26 PM [EMAIL PROTECTED] wrote: | All I would ask is what objective evidence does either of actually | have? How can you know? What is a fair way to even count line | numbers? From there how do we begin to objectively measure software | quality? That's why this discu

The best way of calculating and adding a block check character to a string

2006-05-14 Thread H J van Rooyen
Hi All   I am new to this language, and in using it to drive a serial port, I need to calculate classic block check characters - for the veterans amongst you - think "Burroughs Poll Select" or "Uniscope"...   This is a program fragment that puts the string in an array of Bytes - is there a b