Button Test

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Button Test

Post by Pako » Thu Jul 24, 2008 8:01 am

May I someways recognize, that an action was starting by the button "Test" in Configuration dialogue ?

Pako

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Button Test

Post by Bitmonster » Thu Jul 24, 2008 3:03 pm

Currently only FindWindow is using a non-default Test button behaviour. So you should have good reasons to use something different. FindWindow does it through re-binding the Test button with a custom event handler and not calling event.Skip() in the event handler:

Code: Select all

panel.dialog.buttonRow.testButton.Bind(wx.EVT_BUTTON, OnTestButton)
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Button Test

Post by Pako » Thu Jul 24, 2008 9:24 pm

Good idea - "Elementary, my dear Watson" :) .

Thanks !

Pako

Post Reply