コード例 #1
0
    def __init__(self):

        """
        Get the Gtk Builder for the main window glade file.

        Load all the necessary widgets from the glade file.

        Set the dimensions of the channel box according to the default screen
        size of the machine(this automatically sets the default size of the
        window when it opens).

        Create A List_Store with parameters PixBuf,String and String.
        Add the List_Store to the iconview.
        Configure Iconview.
        Configure Player Surface.

        """

        ## Gtk Builder of the main_window.
        self.interface = file_util.get_user_interface(__file__,
                                        '../../data/glade/mainwindow.glade')
        self.load_widgets()
        self.window.connect("destroy",Gtk.main_quit)
        self.channel_box.set_size_request((self.SCREEN.get_width()/8)+50,
                                            self.SCREEN.get_height()/4)
        self.icon_list_store = Gtk.ListStore(Pixbuf, str,str)
        self.set_iconview_model(self.icon_list_store)
        self.configure_iconview()
        self.configure_player_surface()
コード例 #2
0
ファイル: add_box.py プロジェクト: shubham-iot/p2psp
    def __init__(self):
        """
        Get the Gtk Builder for the Add Dialog Box from the respective glade
        file.

        Load all the necessary widgets from the glade file.

        """

        self.interface = file_util.get_user_interface(
            __file__, '../../data/glade/add_dialog.glade')
        self.load_widgets()
コード例 #3
0
ファイル: add_box.py プロジェクト: 007durgesh219/p2psp
    def __init__(self):

        """
        Get the Gtk Builder for the Add Dialog Box from the respective glade
        file.

        Load all the necessary widgets from the glade file.

        """
        
        self.interface = file_util.get_user_interface(__file__,
                                        '../../data/glade/add_dialog.glade')
        self.load_widgets()
コード例 #4
0
    def __init__(self):
        """
        Get the Gtk Builder for the Import Dialog Box from the respective glade
        file.

        Load all the necessary widgets from the glade file.

        Create a List_Store having 5 Strings as its parameters.
        Set the List_Store as the model of the list_view in Import Box.
        """

        self.interface = file_util.get_user_interface(
            __file__, '../../data/glade/importbox.glade')
        self.load_widgets()

        ## List_Store to store channel data.
        self.list_store = Gtk.ListStore(str, str, str, str, str)
        self.listview.set_model(self.list_store)

        ## Name of columns in the Gtk ListView.
        self.column_string = None
        self.create_list_view()
コード例 #5
0
ファイル: export_box.py プロジェクト: 007durgesh219/p2psp
    def __init__(self):

        """
        Get the Gtk Builder for the Export Dialog Box from the respective glade
        file.

        Load all the necessary widgets from the glade file.

        Create a List_Store having 5 Strings as its parameters.
        Set the List_Store as the model of the list_view in Export Box.
        """

        self.interface = file_util.get_user_interface(__file__,
                                        '../../data/glade/exportbox.glade')
        self.load_widgets()

        ## List_Store to store channel data.
        self.list_store = Gtk.ListStore(str, str,str,str,str)
        self.listview.set_model(self.list_store)
        
        ## Name of columns in the Gtk ListView.
        self.column_string = None
        self.create_list_view()