I found the bug myself :D. In __init__ function I had the code:
ib_w = self.c.frame.iconBar.w
action = QtGui.QAction('Upload', ib_w)
action.connect(action, QtCore.SIGNAL("triggered()"),
self.upload) #<--- this is the reason, why function self.upload was
called twice. I removed it.
self.c.frame.iconBar.add(qaction = action, command = self.upload)
So now I have a minimally working plugin and ask Ville to test and,
maybe, add it to leo plugins. test.leo contains my vision, how it
should work: it contains '@data ftp' node with format, described in my
previous post, and 2 files.
Plugin is here:
http://live-wtr.ru/python.zip
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.