Logo Search packages:      
Sourcecode: webboard version File versions  Download package

def webboardlib::webboard::WebBoard::on_button_send_clicked (   self,
  widget = None 
)
Lock the interface and run the send function
in the background

Definition at line 253 of file webboard.py.

                                                 :
        """
        Lock the interface and run the send function
        in the background
        """
        self.post = self.buffer.get_text(self.buffer.get_start_iter(),
                                             self.buffer.get_end_iter(), False)

        if self.post is "":
            self.statusbar.push(self.context,_("No text for publishing"))
            return

        self.statusbar.push(self.context,_("Publishing..."))
        self.window_main.set_sensitive(False)
        self.textview.set_sensitive(False)
        self.textview.set_editable(False)
        self.window_main.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))

        lock = thread.allocate_lock()
        lock.acquire()
        thread.start_new_thread(self.send, (self.post, self.language, lock))
        gobject.idle_add(self.check_lock_cb, lock)


Generated by  Doxygen 1.6.0   Back to index