Re: Button press event - event handling and picking: IndexError: list index out of range

2020-06-09 Thread Cousin Stanley
Caledonian26 wrote: > However, I keep getting the error: > > IndexError: list index out of range. > > Could anyone give me a helping hand > as to where I am going wrong? > I appended a single arbitrary value for limits since the limits list had not been previously initial

Re: Button press event - event handling and picking: IndexError: list index out of range

2020-06-07 Thread DL Neil via Python-list
On 8/06/20 10:38 AM, MRAB wrote: On 2020-06-07 23:24, DL Neil via Python-list wrote: On 8/06/20 7:06 AM, Caledonian26 wrote: ... However, I keep getting the error: IndexError: list index out of range. Could anyone give me a helping hand as to where I am going wrong? When things go wrong, Py

Re: Button press event - event handling and picking: IndexError: list index out of range

2020-06-07 Thread MRAB
On 2020-06-07 23:24, DL Neil via Python-list wrote: On 8/06/20 7:06 AM, Caledonian26 wrote: ... However, I keep getting the error: IndexError: list index out of range. Could anyone give me a helping hand as to where I am going wrong? When things go wrong, Python tries to be helpful by provi

Re: Button press event - event handling and picking: IndexError: list index out of range

2020-06-07 Thread DL Neil via Python-list
On 8/06/20 7:06 AM, Caledonian26 wrote: ... However, I keep getting the error: IndexError: list index out of range. Could anyone give me a helping hand as to where I am going wrong? When things go wrong, Python tries to be helpful by providing a "traceback". Please copy-paste the entire tra

Button press event - event handling and picking: IndexError: list index out of range

2020-06-07 Thread Caledonian26
I have the following command below. The overall aim is to allow the user to select a Y-value by pressing on the bar graph. The colour of each bar should then change depending on what this Y-value is. import pandas as pd import numpy as np from scipy import stats import matplotlib.pyplot as plt

Event Handling Error in Python 3.4.3

2015-09-26 Thread Supra1983 Tech
I have a python script for a game and the problem is that after running the game, the blocks start falling, but the game over message is not popping up at proper times. Here is my script: import pygame import time import random pygame.init() display_width = 800 display_height = 600 black = (0

Re: Event handling for COM object with win32com (pywin32)

2014-06-22 Thread Kevin Walzer
On 6/22/14, 5:15 AM, peter.balazo...@emspin.com wrote: Do I miss something in code or incorrectly handling the events or COM Object? There is a pywin32 mailing list that may be able to offer more help here. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://ww

Re: Event handling for COM object with win32com (pywin32)

2014-06-22 Thread Chris Angelico
On Sun, Jun 22, 2014 at 9:55 PM, wrote: > You right, this is a typo here - I am sorry for this but event handler does > not work... fmstr application is freezing and event handler does not work. I > need to restart python to unfreeze my application. > I can't help further, then. I'm not experi

Re: Event handling for COM object with win32com (pywin32)

2014-06-22 Thread peter . balazovic
On Sunday, June 22, 2014 12:09:51 PM UTC+2, Chris Angelico wrote: > On Sun, Jun 22, 2014 at 7:15 PM, wrote: > > > This code works on python console but there is no event fired. > > > > > class fmstrEvents(object): > > > ... def OnRecroderDone(self): > > > ... print "

Re: Event handling for COM object with win32com (pywin32)

2014-06-22 Thread Chris Angelico
On Sun, Jun 22, 2014 at 7:15 PM, wrote: > This code works on python console but there is no event fired. > class fmstrEvents(object): > ... def OnRecroderDone(self): > ... print "Hello OnRecroderDone" Is that supposed to say "OnRecroderDone" or "OnRecorderDone"? I can't

Event handling for COM object with win32com (pywin32)

2014-06-22 Thread peter . balazovic
Dears, I have a problem with firing Events and event handling on COM object. This code works on python console but there is no event fired. >>> class fmstrEvents(object): ... def OnRecroderDone(self): ... print "Hello OnRecroderDone" >>> i

Re: problem in event handling on change of variable value.

2014-04-17 Thread Bernd . Moennicke
n of the sleep blocks the actual task and the event handling dosn't work. Now I search for a solution to start the event class in a extra task with treahding.Thread. I've write a simple claas for testing of this: class Tester (threading.Thread): def __init__ (self, variable

problem in event handling on change of variable value.

2012-05-07 Thread Nadhiya A
Hi, I want know how can I control Canoe tool from Python. I want to use Python as the mediator for linking CANoe and Matlab. Please give me some inputs regarding this. Thanks & Regards Nadhiya.A Larsen & Toubro Limited www.larsentoubro.com This Email may contain confidential or privileged in

Re: event handling in pyuthon

2010-02-09 Thread Tiago Katcipis
On Tue, Feb 9, 2010 at 5:20 AM, Bujji wrote: > hi all, > any event handling mechanisms in python ? > i want event handler examples in python > dont know if it is this that you are looking for: http://home.gna.org/py-notify/ > > > Thanks > Bujji > > > >

event handling in pyuthon

2010-02-08 Thread Bujji
hi all, any event handling mechanisms in python ? i want event handler examples in python Thanks Bujji -- http://mail.python.org/mailman/listinfo/python-list

Re: problem in event handling on change of variable value.

2009-08-03 Thread sirjee
On Aug 1, 2:22 pm, sirjee wrote: > hello; > > i m facing a problem in handling events on change of value of > environment variable in a toolCANoe. > > class CANoeEvents: >     def OnChange(self,value): >         print "value of environment variable has changed" >     def OnOpen(self,App): >      

problem in event handling on change of variable value.

2009-08-01 Thread sirjee
hello; i m facing a problem in handling events on change of value of environment variable in a tool CANoe. class CANoeEvents: def OnChange(self,value): print "value of environment variable has changed" def OnOpen(self,App): print "opening Application" App_Event = Dispatch

Re: Ubigraph vs Matplotlib (dynamic plotting, event handling)

2009-07-01 Thread Che M
On Jun 30, 6:20 pm, Ala wrote: > Hello everyone, > > I intend to use python for some network graph plotting, with event > handling (clicking on network nodes, zooming in/out etc..) and so far I > have come across two good candidates which are Matplotlib and Ubigraph. > >

Ubigraph vs Matplotlib (dynamic plotting, event handling)

2009-06-30 Thread Ala
Hello everyone, I intend to use python for some network graph plotting, with event handling (clicking on network nodes, zooming in/out etc..) and so far I have come across two good candidates which are Matplotlib and Ubigraph. Did anyone have any experience with either of them for dynamic

Re: Event Handling and Signal-Slot Mechanism

2009-01-19 Thread Steven Woody
GUI in Qt is nice (personal opinion obviously). > > To comne back to your question: > >> why he still need another mechanism >> Event Handling? > > This is actually a Qt question: why have event handling for some > things, and signal/slot for some others ? > > My opinion

Re: Event Handling and Signal-Slot Mechanism

2009-01-19 Thread BlueBird
o emulate them using the Python language. In C++ however, it's tricky to do signal/slots in pure C++ and this addition is one of the reason that programming GUI in Qt is nice (personal opinion obviously). To comne back to your question: > why he still need another mechanism > Event Handli

Re: Event Handling and Signal-Slot Mechanism

2009-01-19 Thread James Mills
On Mon, Jan 19, 2009 at 5:49 PM, Steven Woody wrote: > I am reading mark summerfield's book Rapid GUI Programming with Python > and Qt, chapter 6. In the example code, it inserted customized > behavior when user selects file->exit by overriding closeEvent() event > handler, but in other context, w

Re: Event Handling and Signal-Slot Mechanism

2009-01-18 Thread Steven Woody
On Mon, Jan 19, 2009 at 11:29 AM, James Mills wrote: > On Mon, Jan 19, 2009 at 1:10 PM, Steven Woody wrote: >> Python has Signal-Slot mechanism, why he still need another mechanism >> Event Handling? And, in some cases, it seems only Event Handling >> mechanism is a

Re: Event Handling and Signal-Slot Mechanism

2009-01-18 Thread James Mills
On Mon, Jan 19, 2009 at 1:10 PM, Steven Woody wrote: > Python has Signal-Slot mechanism, why he still need another mechanism > Event Handling? And, in some cases, it seems only Event Handling > mechanism is available, for example closeEvent(). For what case and > for what reason

Event Handling and Signal-Slot Mechanism

2009-01-18 Thread Steven Woody
Hi, Python has Signal-Slot mechanism, why he still need another mechanism Event Handling? And, in some cases, it seems only Event Handling mechanism is available, for example closeEvent(). For what case and for what reason, the python think Signal Slot is not enough and will not work? Thanks

Re: Wx Python - Code Structure & Event Handling

2008-09-10 Thread lee . walczak
Thanks for the feedback. It is greatly appreciated. Let me check out your references and see where they take me. Will post back and let you know how useful this was. thanks! Lee -- http://mail.python.org/mailman/listinfo/python-list

Re: Wx Python - Code Structure & Event Handling

2008-09-09 Thread Stephen D Evans
Lee, have you considered using the Model-View-Presenter pattern? There is a nice example on the wxPython wiki: http://wiki.wxpython.org/ModelViewPresenter This scales well to complex GUIs. Grasping the concept and writing the initial code is the difficult part. Code is then much easier to deve

Re: Wx Python - Code Structure & Event Handling

2008-09-09 Thread Mike Driscoll
On Sep 9, 3:05 pm, [EMAIL PROTECTED] wrote: > Hi, > > I have just started writing a GUI using wxpython after finding a > limitation using Tkinter. I have read most tutorials on wxpython and > slowly becoming accustomed considering I started with the latter GUI > tool first! > I must quote first tha

Wx Python - Code Structure & Event Handling

2008-09-09 Thread lee . walczak
Hi, I have just started writing a GUI using wxpython after finding a limitation using Tkinter. I have read most tutorials on wxpython and slowly becoming accustomed considering I started with the latter GUI tool first! I must quote first that I am a novice user of python so the issue(s) I have may

Re: event handling

2008-01-30 Thread Mike Driscoll
On Jan 30, 11:16 am, Peter Nemeth <[EMAIL PROTECTED]> wrote: > Hi , > > I am working on a stellar spectral analysis pipeline in Python. My OS is > Suse 10.0, and i use Python 2.5 . I have found difficulties with keyboard > event handling. My code communicates with the user th

event handling

2008-01-30 Thread Peter Nemeth
Hi , I am working on a stellar spectral analysis pipeline in Python. My OS is Suse 10.0, and i use Python 2.5 . I have found difficulties with keyboard event handling. My code communicates with the user through an xterm window and shows graphs in a Gnuplot window. At a certain point i start

Event handling and Late Binding

2007-11-10 Thread swellfr
Hi, I have a component that i can only access through late binding. This is working fine , i can use all the exposed methods , but i can't register (/don't know how to ) event handlers for this component. Is there someone that knows how to do it or who can spot me a example. Thx -- http://ma

close event handling for ScrollView

2006-08-28 Thread mail2sirshendu
I have a class in which I have created an instance QScrollView and added a QDialog inside it using addChild().I have Ok and Cancel button in the Dialog.When either Ok or Cancel is clicked the Dialog is closed properly (receiving accept or reject signals). I have a exec loop on the Dialog. When I c

Re: curses event handling

2006-06-07 Thread Walter Dörwald
John Hunter wrote: > I have a curses app that is displaying real time data. I would like > to bind certain keys to certain functions, but do not want to block > waiting for > > c = screen.getch() > > Is it possible to register callbacks with curses, something like > > screen.register('ke

curses event handling

2006-06-07 Thread John Hunter
I have a curses app that is displaying real time data. I would like to bind certain keys to certain functions, but do not want to block waiting for c = screen.getch() Is it possible to register callbacks with curses, something like screen.register('keypress', myfunc) Thanks, JDH -- ht

Re: Asynchronous event handling...?

2005-01-24 Thread Pedro Werneck
Hi, Maybe something like this... from Tkinter import * import itertools class Application(Frame): def __init__(self, master=None): Frame.__init__(self, master) self.grid() self.createWidgets() def createWidgets(self): self.stop = Button(self,text='Emerge

Re: Asynchronous event handling...?

2005-01-23 Thread Fredrik Lundh
Chris Line wrote: > When the 'stop' button is selected after 'count', it does > not execute until the count command finishes at 500. > Instead, it is desired to stop counting immediately and > execute the 'stop' method. > > Is there a simple way to handle this situation? calling self.update() at

Asynchronous event handling...?

2005-01-23 Thread Chris Line
The application below has two buttons, 'count' and 'stop'.   When the 'stop' button is selected after 'count', it does not execute until the count command finishes at 500.  Instead, it is desired to stop counting immediately and execute the 'stop' method.   Is there a simple way to handle this situ