Example #1
0
 def __refresh_maze_frame(self, item):
     """ Refresh camera frame in maze window,
     clearing the corner configuration clicks. """
     field_image = self.__builder.get_object("field_image")
     # field_image.set_from_pixbuf(gtk.gdk.pixbuf_new_from_array(facade.get_frame_with_corners(), gtk.gdk.COLORSPACE_RGB, 8))
     field_image.set_from_pixbuf(
         gtk.gdk.pixbuf_new_from_array(facade.get_frame_with_points(), gtk.gdk.COLORSPACE_RGB, 8)
     )
Example #2
0
    def __open_maze_navigate_dialog(self, menu_item):
        """ Opens the image settings window """

        # TODO: Sometimes this breaks if the pilot closes the window and reopens it
        maze_window = self.__builder.get_object("maze_window")
        field_image = self.__builder.get_object("field_image")

        # annotated_frame = facade.get_frame_with_corners()
        annotated_frame = facade.get_frame_with_points()

        annotated_pixbuf = gtk.gdk.pixbuf_new_from_array(annotated_frame, gtk.gdk.COLORSPACE_RGB, 8)
        field_image.set_from_pixbuf(annotated_pixbuf)

        maze_window.show()