Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Search found 5 matches

by jprovan
Fri Sep 16, 2016 9:34 pm
Forum: Coding Corner
Topic: EG and Stackless
Replies: 16
Views: 6456

Re: EG and Stackless

I am not so sure that "stackless is a dying flavor of python". Looking at https://bitbucket.org/stackless-dev/sta ... ommits/all, there have been commits as recent as 9/10/2016.
by jprovan
Thu Feb 18, 2010 12:54 am
Forum: Coding Corner
Topic: Regex Wierdness
Replies: 3
Views: 2224

Re: Regex Wierdness

I found it. It is m.end()...not m.stop(). Thanks for the help.
by jprovan
Thu Feb 18, 2010 12:44 am
Forum: Coding Corner
Topic: Regex Wierdness
Replies: 3
Views: 2224

Re: Regex Wierdness

I added the statement and the output is

(<type 'exceptions.AttributeError'>, AttributeError('stop',), <traceback object at 0x047F30F8>)
by jprovan
Wed Feb 17, 2010 4:05 pm
Forum: Coding Corner
Topic: Regex Wierdness
Replies: 3
Views: 2224

Regex Wierdness

I have a bit of code that is failing and I don't know why:

import re

re.sub(r'^[ \t\r\n]+|[ \t\r\n]+$', '', self.LG_Serial_1_result)

m = re.match(r'^a \d{1,2} OK(\d{1,2})x$', self.LG_Serial_1_result)

try:
test = self.LG_Serial_1_result[m.start():m.stop()]

print "Device feedback = " + self ...
by jprovan
Mon Jan 04, 2010 5:05 pm
Forum: Coding Corner
Topic: Triggering an event immediately
Replies: 3
Views: 2466

Triggering an event immediately

I am new to EventGhost (and python), but not a new programmer.

I would like to trigger an event similar in fashion to calling a subroutine. However, when I trigger the event, my code continues executing and the event is triggered after my code is done.

Is there a way to trigger an event and wait ...