def __init__(self, width, client, **kwds):
     font = self.predict_font(kwds)
     h = font.get_linesize()
     d = 2 * self.predict(kwds, 'margin')
     ScrollPanel.__init__(self, inner_width=width, **kwds)
     self.icons = {True: scale(folder_image, (self.row_height, self.row_height)), False: scale(file_image, (self.row_height, self.row_height))}
     self.client = client
     self.names = []
    def __init__(self, width, client, **kwds):
        kwds['align'] = kwds.get('align', 'l')
        ScrollPanel.__init__(self, inner_width=width, **kwds)

        if DEBUG:
            file_image, folder_image = get_imgs()

        self.icons = {True: scale(folder_image, (self.row_height, self.row_height)), False: scale(file_image, (self.row_height, self.row_height))}
        self.client = client
        self.names = []
Beispiel #3
0
 def __init__(self, width, client, **kwds):
     font = self.predict_font(kwds)
     h = font.get_linesize()
     d = 2 * self.predict(kwds, 'margin')
     ScrollPanel.__init__(self, inner_width=width, **kwds)
     self.icons = {
         True: scale(folder_image, (self.row_height, self.row_height)),
         False: scale(file_image, (self.row_height, self.row_height))
     }
     self.client = client
     self.names = []
Beispiel #4
0
 def click_item(self, item_no, e):
     self.selected_item_index = item_no
     ScrollPanel.click_item(self, item_no, e)
     if e.num_clicks == 2:
         self.client.dir_box_click(True)
 def click_item(self, item_no, e):
     self.selected_item_index = item_no
     ScrollPanel.click_item(self, item_no, e)
     if e.num_clicks == 2:
         self.client.dir_box_click(True)