私は想定ワークバランスを使用しており、ハンドラーでサービスを取得したいと考えています。関数では、_tcp_send_changed
どのようにサービスを取得できますか。プラグインには がありますが、self.application.get_service(....)
どうすればそれらに到達できますか?
更新しました
これが私の見解です
class MCLidarGUIView( HasTraits ):
traits_ui_view = View(
VGroup(
HGroup(
Item( 'lidar_list',
show_label = False,
editor = TabularEditor(
show_titles = False,
selected = 'selected',
editable = False,
multi_select = True,
adapter = LidarAdapter()
),
),
),
Item(
"lidars_command"
),
HGroup(
Item( 'handler.tcp_send',
show_label = False,
editor = ButtonEditor( label = "TCP:Send" )
),
)
),
id = 'forwind.lidarapi.giuview',
resizable = True,
handler = MCLidarActions()
)
lidar_list = [LidarObject( lidar_name = "No Connected Lidar" )]
lidars_command = ''
これは私のハンドラーです:
class MCLidarActions( Handler ):
tcp_send = Event
def object__updated_changed( self, info ):
print info;
pass;
def _tcp_send_changed( self ):
print( " info" )