Hi,

I would have the feature in zhone to manually release/request
the gsm resource and add:

@@ -1903,6 +1903,12 @@
         id = int( source.split( "_" )[-1] )
         if( id == 5 ):
           os.system("halt")
+        if( id == 3 ):
+          #gui.agents["usage"].release("GSM")
+          self.main.agents["usage"].release("GSM")
+        if( id == 2 ):
+          #gui.agents["usage"].request("GSM")
+          self.main.agents["usage"].request("GSM")
         if( id == 0 ):
           fp = os.popen("sleep 5 && \
                          n=/tmp/scap$$.png && \
@@ -1929,6 +1935,10 @@

         self.part_text_set( "label_main_list_0", _("Take screenshot") )
         self.part_text_set( "label_sub_list_0", _("and upload to 
http://scap.linuxtogo.org";) )
+        self.part_text_set( "label_main_list_3", _("Turn off GSM") )
+        #self.part_text_set( "label_sub_list_3", _("GSM") )
+        self.part_text_set( "label_main_list_2", _("Turn on GSM") )
+        #self.part_text_set( "label_sub_list_2", _("GSM") )
         self.part_text_set( "label_main_list_5", _("Exit") )
         self.part_text_set( "label_sub_list_5", _("Stop and exit Zhone") )


and both 
gui.agents["usage"].release("GSM") and
self.main.agents["usage"].release("GSM") works, but my 
python skills are not good enough to decide which of these is
better. Can someone give me a tip which is the better solution and 
a little statement why.

thanks
Michael



_______________________________________________
Smartphones-userland mailing list
Smartphones-userland@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland

Reply via email to