How do I convert a VB delegate into a python event handler?
问题 I have to rewrite the following VB code that is subscribing to a delegate (event), into python, using python.net. Imports MtApi Public Class Form1 Private apiClient As MtApiClient Public Sub New() InitializeComponent() apiClient = New MtApiClient AddHandler apiClient.QuoteUpdated, AddressOf QuoteUpdatedHandler End Sub Sub QuoteUpdatedHandler(sender As Object, symbol As String, bid As Double, ask As Double) Dim quoteSrt As String quoteSrt = symbol + ": Bid = " + bid.ToString() + "; Ask = " +