Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/o/c/ochDownloader-HEAD/qt/add_downloads.py   ochDownloader(Download)
import media
import signals
from list_model import SimpleListModel
from context_menu import Menu
from add_links_dlg import AddLinks
        headers = ["hidden_id_item", "", "", _("File Name"), _("Host"), _("Size"), _("Status Message")]
 
        self.__model = SimpleListModel(headers, self.items, bool_cols, image_cols)
        self.tree_view.setModel(self.__model)
        self.addWidget(self.tree_view)

src/o/c/ochDownloader-HEAD/qt/accounts.py   ochDownloader(Download)
from PySide.QtCore import *
 
from list_model import SimpleListModel
 
 
        bool_cols = [ENABLE, ]
        #
        self.__model = SimpleListModel(headers, self.items, bool_cols)
        self.tree_view.setModel(self.__model)
        vbox_accounts.addWidget(self.tree_view)

src/o/c/ochDownloader-HEAD/qt/tree_view.py   ochDownloader(Download)
 
from PySide.QtGui import *
from PySide.QtCore import *
 
from .list_model import SimpleListModel
        self.rows_buffer = {} # {id_item: row_obj, }
 
        self.model = SimpleListModel(headers, self.items)
        self.setModel(self.model)
 

src/o/c/ochDownloader-HEAD/qt/downloads.py   ochDownloader(Download)
import media
import signals
from list_model import SimpleListModel
from context_menu import Menu
 
                   _("Progress"), _("Time"), _("Remain"), _("Speed"), _("Status Message")]
 
        self.__model = SimpleListModel(headers, self.items)
        self.setModel(self.__model)
        self.setColumnHidden(0, True)