예제 #1
0
    def call_display(self, widget, data):
        for index in range(len(self.plus)):
            if widget == self.plus[index]:
                print 'current button index:', index
                break

        msg_read.main(index, self.message)
예제 #2
0
   def call_display(self,widget,data):
       for index in range(len(self.plus)):
           if widget==self.plus[index]:
               print 'current button index:' ,index
               break
 
      
       msg_read.main(index,self.message)
예제 #3
0
      def parse_js_obj(self,message_data):

          self.decoded = json.loads(message_data)
          print 'DECODED:', self.decoded
          print self.decoded[0]['content']

          fob = open('dwrite' ,'w')                   
          for item in self.decoded:
              fob.write("%s\n" % item)
          fob.close() 

          msg_read.main()
예제 #4
0
    def parse_js_obj(self, message_data):

        self.decoded = json.loads(message_data)
        print 'DECODED:', self.decoded
        print self.decoded[0]['content']

        fob = open('dwrite', 'w')
        for item in self.decoded:
            fob.write("%s\n" % item)
        fob.close()

        msg_read.main()
예제 #5
0
      def parse_js_obj(self,message_data):

          self.decoded = json.loads(message_data)
          print 'DECODED:', self.decoded
          print self.decoded[0]['data']['message']

          fob = open('dwrite' ,'w')                   
          for item in self.decoded:
              fob.write("%s\n" % item)
          fob.close() 

          pynotify.init ("Hello world")
          Hello=pynotify.Notification ("Message Received!","You have an unread message..","dialog-information")
          Hello.show ()
          pynotify.uninit ()
          
          msg_read.main()