def create_bitmap(self, artid, client, size): artid = wal.untr(artid) if artid in self.match_keys: filename = self.iconmatch[artid] + self.file_ext size_dir = '%sx%s' % (size[0], size[0]) if size == wal.DEF_SIZE: size_dir = 'fixed' path = os.path.join(self.theme_path, size_dir, filename) if fsutils.isfile(path): return self.get_bitmap(path) elif artid in self.iconset: path = os.path.join(self.iconset_path, artid + self.file_ext) sized_name = artid + '-' + str(size[0]) + self.file_ext sized_path = os.path.join(self.iconset_path, sized_name) if fsutils.isfile(sized_path): return self.get_bitmap(sized_path) elif fsutils.isfile(path): return self.get_bitmap(path) else: filename = artid + self.file_ext size_dir = '%dx%d' % (size[0], size[0]) if size == wal.DEF_SIZE: size_dir = 'fixed' path = os.path.join(self.theme_path, size_dir, filename) if fsutils.isfile(path): return self.get_bitmap(path) if fsutils.isfile(artid): return self.get_bitmap(artid) return self.get_bitmap()
def get_shortcut_text(self): if self.is_acc: return wal.untr(self.acc_entry.ToString()) return ''
def get_connection(self): return wal.untr(self.details['device-uri'])
def get_driver_name(self): return wal.untr(self.details['printer-make-and-model'])
def get_name(self): return wal.untr(self.details['printer-info'])
def get_ps_name(self): return wal.untr(self.name)
def get_shortcut_text(self): return wal.untr(self.acc_entry.ToString()).replace(' ', '') \ if self.is_acc else ''