Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def set_cover_pixmap(self, pixmap):
self.cover_label.show()
self.cover_label.setPixmap(
pixmap.scaledToWidth(self.cover_label.width(),
mode=Qt.SmoothTransformation))
title = getset_property('title', _refresh_title)
subtitle = getset_property('subtitle', _refresh_title)
desc = getset_property('desc', _refresh_desc)
cover = getset_property('cover', _refresh_cover)
created_at = getset_property('created_at', _refresh_meta_label)
updated_at = getset_property('updated_at', _refresh_meta_label)
songs_count = getset_property('songs_count', _refresh_meta_label)
creator = getset_property('creator', _refresh_meta_label)
is_artist = getset_property('is_artist', _refresh_toolbar)
def toggle_full_window(self):
if self._is_fullwindow:
self.toggle_full_window_needed.emit(False)
self.setMaximumHeight(180)
else:
# generally, display height will be less than 4000px
self.toggle_full_window_needed.emit(True)
self.setMaximumHeight(4000)
self._is_fullwindow = not self._is_fullwindow
self.created_at = None
self.updated_at = None
self.creator = None
self.is_artist = False
self.songs_count = None
def set_cover_pixmap(self, pixmap):
self.cover_label.show()
self.cover_label.setPixmap(
pixmap.scaledToWidth(self.cover_label.width(),
mode=Qt.SmoothTransformation))
title = getset_property('title', _refresh_title)
subtitle = getset_property('subtitle', _refresh_title)
desc = getset_property('desc', _refresh_desc)
cover = getset_property('cover', _refresh_cover)
created_at = getset_property('created_at', _refresh_meta_label)
updated_at = getset_property('updated_at', _refresh_meta_label)
songs_count = getset_property('songs_count', _refresh_meta_label)
creator = getset_property('creator', _refresh_meta_label)
is_artist = getset_property('is_artist', _refresh_toolbar)
def toggle_full_window(self):
if self._is_fullwindow:
self.toggle_full_window_needed.emit(False)
self.setMaximumHeight(180)
else:
# generally, display height will be less than 4000px
self.toggle_full_window_needed.emit(True)
self.setMaximumHeight(4000)
self._is_fullwindow = not self._is_fullwindow
self.desc = None
self.cover = None
self.created_at = None
self.updated_at = None
self.creator = None
self.is_artist = False
self.songs_count = None
def set_cover_pixmap(self, pixmap):
self.cover_label.show()
self.cover_label.setPixmap(
pixmap.scaledToWidth(self.cover_label.width(),
mode=Qt.SmoothTransformation))
title = getset_property('title', _refresh_title)
subtitle = getset_property('subtitle', _refresh_title)
desc = getset_property('desc', _refresh_desc)
cover = getset_property('cover', _refresh_cover)
created_at = getset_property('created_at', _refresh_meta_label)
updated_at = getset_property('updated_at', _refresh_meta_label)
songs_count = getset_property('songs_count', _refresh_meta_label)
creator = getset_property('creator', _refresh_meta_label)
is_artist = getset_property('is_artist', _refresh_toolbar)
def toggle_full_window(self):
if self._is_fullwindow:
self.toggle_full_window_needed.emit(False)
self.setMaximumHeight(180)
else:
# generally, display height will be less than 4000px
self.toggle_full_window_needed.emit(True)
self.setMaximumHeight(4000)
self.cover = None
self.created_at = None
self.updated_at = None
self.creator = None
self.is_artist = False
self.songs_count = None
def set_cover_pixmap(self, pixmap):
self.cover_label.show()
self.cover_label.setPixmap(
pixmap.scaledToWidth(self.cover_label.width(),
mode=Qt.SmoothTransformation))
title = getset_property('title', _refresh_title)
subtitle = getset_property('subtitle', _refresh_title)
desc = getset_property('desc', _refresh_desc)
cover = getset_property('cover', _refresh_cover)
created_at = getset_property('created_at', _refresh_meta_label)
updated_at = getset_property('updated_at', _refresh_meta_label)
songs_count = getset_property('songs_count', _refresh_meta_label)
creator = getset_property('creator', _refresh_meta_label)
is_artist = getset_property('is_artist', _refresh_toolbar)
def toggle_full_window(self):
if self._is_fullwindow:
self.toggle_full_window_needed.emit(False)
self.setMaximumHeight(180)
else:
# generally, display height will be less than 4000px
self.toggle_full_window_needed.emit(True)
self.setMaximumHeight(4000)
self._is_fullwindow = not self._is_fullwindow
self.is_artist = False
self.songs_count = None
def set_cover_pixmap(self, pixmap):
self.cover_label.show()
self.cover_label.setPixmap(
pixmap.scaledToWidth(self.cover_label.width(),
mode=Qt.SmoothTransformation))
title = getset_property('title', _refresh_title)
subtitle = getset_property('subtitle', _refresh_title)
desc = getset_property('desc', _refresh_desc)
cover = getset_property('cover', _refresh_cover)
created_at = getset_property('created_at', _refresh_meta_label)
updated_at = getset_property('updated_at', _refresh_meta_label)
songs_count = getset_property('songs_count', _refresh_meta_label)
creator = getset_property('creator', _refresh_meta_label)
is_artist = getset_property('is_artist', _refresh_toolbar)
def toggle_full_window(self):
if self._is_fullwindow:
self.toggle_full_window_needed.emit(False)
self.setMaximumHeight(180)
else:
# generally, display height will be less than 4000px
self.toggle_full_window_needed.emit(True)
self.setMaximumHeight(4000)
self._is_fullwindow = not self._is_fullwindow
self.creator = None
self.is_artist = False
self.songs_count = None
def set_cover_pixmap(self, pixmap):
self.cover_label.show()
self.cover_label.setPixmap(
pixmap.scaledToWidth(self.cover_label.width(),
mode=Qt.SmoothTransformation))
title = getset_property('title', _refresh_title)
subtitle = getset_property('subtitle', _refresh_title)
desc = getset_property('desc', _refresh_desc)
cover = getset_property('cover', _refresh_cover)
created_at = getset_property('created_at', _refresh_meta_label)
updated_at = getset_property('updated_at', _refresh_meta_label)
songs_count = getset_property('songs_count', _refresh_meta_label)
creator = getset_property('creator', _refresh_meta_label)
is_artist = getset_property('is_artist', _refresh_toolbar)
def toggle_full_window(self):
if self._is_fullwindow:
self.toggle_full_window_needed.emit(False)
self.setMaximumHeight(180)
else:
# generally, display height will be less than 4000px
self.toggle_full_window_needed.emit(True)
self.setMaximumHeight(4000)
self._is_fullwindow = not self._is_fullwindow
self.updated_at = None
self.creator = None
self.is_artist = False
self.songs_count = None
def set_cover_pixmap(self, pixmap):
self.cover_label.show()
self.cover_label.setPixmap(
pixmap.scaledToWidth(self.cover_label.width(),
mode=Qt.SmoothTransformation))
title = getset_property('title', _refresh_title)
subtitle = getset_property('subtitle', _refresh_title)
desc = getset_property('desc', _refresh_desc)
cover = getset_property('cover', _refresh_cover)
created_at = getset_property('created_at', _refresh_meta_label)
updated_at = getset_property('updated_at', _refresh_meta_label)
songs_count = getset_property('songs_count', _refresh_meta_label)
creator = getset_property('creator', _refresh_meta_label)
is_artist = getset_property('is_artist', _refresh_toolbar)
def toggle_full_window(self):
if self._is_fullwindow:
self.toggle_full_window_needed.emit(False)
self.setMaximumHeight(180)
else:
# generally, display height will be less than 4000px
self.toggle_full_window_needed.emit(True)
self.setMaximumHeight(4000)
self._is_fullwindow = not self._is_fullwindow
self.subtitle = None
self.desc = None
self.cover = None
self.created_at = None
self.updated_at = None
self.creator = None
self.is_artist = False
self.songs_count = None
def set_cover_pixmap(self, pixmap):
self.cover_label.show()
self.cover_label.setPixmap(
pixmap.scaledToWidth(self.cover_label.width(),
mode=Qt.SmoothTransformation))
title = getset_property('title', _refresh_title)
subtitle = getset_property('subtitle', _refresh_title)
desc = getset_property('desc', _refresh_desc)
cover = getset_property('cover', _refresh_cover)
created_at = getset_property('created_at', _refresh_meta_label)
updated_at = getset_property('updated_at', _refresh_meta_label)
songs_count = getset_property('songs_count', _refresh_meta_label)
creator = getset_property('creator', _refresh_meta_label)
is_artist = getset_property('is_artist', _refresh_toolbar)
def toggle_full_window(self):
if self._is_fullwindow:
self.toggle_full_window_needed.emit(False)
self.setMaximumHeight(180)
else:
# generally, display height will be less than 4000px
self.toggle_full_window_needed.emit(True)
self.songs_count = None
def set_cover_pixmap(self, pixmap):
self.cover_label.show()
self.cover_label.setPixmap(
pixmap.scaledToWidth(self.cover_label.width(),
mode=Qt.SmoothTransformation))
title = getset_property('title', _refresh_title)
subtitle = getset_property('subtitle', _refresh_title)
desc = getset_property('desc', _refresh_desc)
cover = getset_property('cover', _refresh_cover)
created_at = getset_property('created_at', _refresh_meta_label)
updated_at = getset_property('updated_at', _refresh_meta_label)
songs_count = getset_property('songs_count', _refresh_meta_label)
creator = getset_property('creator', _refresh_meta_label)
is_artist = getset_property('is_artist', _refresh_toolbar)
def toggle_full_window(self):
if self._is_fullwindow:
self.toggle_full_window_needed.emit(False)
self.setMaximumHeight(180)
else:
# generally, display height will be less than 4000px
self.toggle_full_window_needed.emit(True)
self.setMaximumHeight(4000)
self._is_fullwindow = not self._is_fullwindow