c# - Can a python callback call a .NET method? -


i've got beaglebone black running debian, 480x272-pixel cape (touch screen) attached. i'm using wicd wired/wireless interface, because has nice python/gtk-based solution ready end users set various network configurations.

the problem end users not have access physical keyboard, in order enter wifi settings, need virtual keyboard.

my main project mono-based (c#), , i've got virtual keyboard written in gtksharp (c#). can call other c# project files fine, can't open python module.

i call wicd client with:

    private void callwicddialaog()     {         process proc = new process         {             startinfo = new processstartinfo             {                 filename = "/usr/bin/wicd-client",                 arguments = "-n",                 useshellexecute = false,                 redirectstandardoutput = false,                 createnowindow = true             }         };         proc.start();     } 

this starts python process in native debian os, not through mono/c# project. need no "communication" between wicd , mono project anywhere else virtual keyboard.

the wicd project hooks gtk focus event within guiutil.py file this:

class labelentry(gtk.hbox):     """ label on left textbox on right, 370 pixels wide. """     def __init__(self,text):         ...         self.entry.connect('focus-in-event', self.show_characters)      ...      def show_characters(self, widget=none, event=none):         # when box has focus, show characters         """ hook virtual keyboard in here """         if self.auto_hide_text , widget:             self.entry.set_visibility(true) 

what do, call virtual keyboard within show_characters definition.

how this?

  • is there way communicate python callback mono?
  • is there way inject callback python mono?
  • do need rewrite gtksharp-based keyboard in python, , let debian os handle natively?
  • is there virtual keyboard out there handle such small screen space?
  • is there different solution haven't thought of?

hmmm. these system integration problems never easy solve. here things at.

when comes launching keyboard. figure out how line in terminal. once have can figure out control flow.

transmitting data interesting. first 2 things come mind are:

  1. try setting c# keyboard return text can parse via stdout/in. fork() keyboard python app. works bash, why not this?
  2. write tiny udp server in c# project, , have send output python app. on internal loopback , shouldn't advertising open ports.
  3. run both @ start up, , have both listen system interrupts control switching.

good luck!


Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -