wx.FileSystemWatcher (Phoenix)

I’ve created a SSCCE program for debugging purposes. The print wx.version() line produces: 2.9.5.81-r74045 msw (phoenix)

It sets up the FSW on the directory of the script. If you create, rename, or delete files in that directory you should see the handler gets called, and it shows that the type of the event it receives is a wx.Event.

fswatcher.py (1.05 KB)

Try adding print dir(event) to your handler, I think that you will
find that something along the lines of GetObject or GetData may be a
help.

···

On 28/05/13 17:02, Zac Stringham wrote:

  I've created a SSCCE program for debugging purposes.

The print wx.version() line produces: 2.9.5.81-r74045 msw
(phoenix)

  It sets up the FSW on the directory of the script. If you create,

rename, or delete files in that directory you should see the
handler gets called, and it shows that the type of the event it
receives is a wx.Event.

  --

  You received this message because you are subscribed to the Google

Groups “wxPython-users” group.

  To unsubscribe from this group and stop receiving emails from it,

send an email to .
For more options, visit .


Steve Gadget Barnes

wxpython-users+unsubscribe@googlegroups.com
https://groups.google.com/groups/opt_out

print dir(event), directly from the console:

[‘ClassName’, ‘Clone’, ‘Destroy’, ‘EventObject’, ‘EventType’, ‘GetClassName’, ‘G
etEventCategory’, ‘GetEventObject’, ‘GetEventType’, ‘GetEventUserData’, ‘GetId’,
‘GetRefData’, ‘GetSkipped’, ‘GetTimestamp’, ‘Id’, ‘IsCommandEvent’, ‘IsSameAs’,
‘Ref’, ‘RefData’, ‘ResumePropagation’, ‘SetEventObject’, ‘SetEventType’, 'SetId
', ‘SetRefData’, ‘SetTimestamp’, ‘ShouldPropagate’, ‘Skip’, ‘Skipped’, ‘StopProp
agation’, ‘Timestamp’, ‘UnRef’, ‘UnShare’, ‘class’, ‘delattr’, 'dict
', ‘doc’, ‘format’, ‘getattribute’, ‘hash’, ‘init’, ‘modul
e
’, ‘new’, ‘reduce’, ‘reduce_ex’, ‘repr’, ‘setattr’, ‘si
zeof
’, ‘str’, ‘subclasshook’, ‘weakref’]

I’ve checked the ones that seemed relevant.
event.GetEventObject() => None
event.GetEventUserData() => wx.EvtHandler object
event.GetRefData() => None

Any further suggestions?

···

On Tuesday, May 28, 2013 2:17:28 PM UTC-4, Gadget Steve wrote:

Try adding print dir(event) to your handler, I think that you will

find that something along the lines of GetObject or GetData may be a
help.