From e37f9a9b35472e007ad5bfafe08033bb0c1d7d15 Mon Sep 17 00:00:00 2001 From: Gianluca Pernigotto Date: Sun, 5 Sep 2021 10:49:09 +0200 Subject: [PATCH] update release --- videomass3/vdms_panels/choose_topic.py | 4 ++-- videomass3/vdms_utils/get_bmpfromsvg.py | 4 ++-- videomass3/vdms_utils/utils.py | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/videomass3/vdms_panels/choose_topic.py b/videomass3/vdms_panels/choose_topic.py index 075d5e8a..42e34f09 100644 --- a/videomass3/vdms_panels/choose_topic.py +++ b/videomass3/vdms_panels/choose_topic.py @@ -164,7 +164,7 @@ def __init__(self, parent, OS): welcome.SetForegroundColour('#171b12') # black version.SetForegroundColour('#171b12') # black - self.Bind(wx.EVT_BUTTON, self.on_Video, self.avconv) + self.Bind(wx.EVT_BUTTON, self.on_Conv, self.avconv) self.Bind(wx.EVT_BUTTON, self.on_Prst_mng, self.presets_mng) self.Bind(wx.EVT_BUTTON, self.on_Conc, self.conc) self.Bind(wx.EVT_BUTTON, self.on_YoutubeDL, self.youtube) @@ -177,7 +177,7 @@ def on_Prst_mng(self, event): self.parent.switch_file_import(self, 'Presets Manager') # ------------------------------------------------------------------# - def on_Video(self, event): + def on_Conv(self, event): """ Open drag N drop interface to switch on AVconversions panel """ diff --git a/videomass3/vdms_utils/get_bmpfromsvg.py b/videomass3/vdms_utils/get_bmpfromsvg.py index c80c2f2d..82d735fd 100644 --- a/videomass3/vdms_utils/get_bmpfromsvg.py +++ b/videomass3/vdms_utils/get_bmpfromsvg.py @@ -1,7 +1,7 @@ # -*- coding: UTF-8 -*- """ Name: get_bmpfromSvg.py -Porpose: return bmp image from a scalable vector graphic (svg format) +Porpose: return bmp image from a scalable vector graphic format (svg) Compatibility: Python3, wxPython Phoenix Author: Gianluca Pernigotto Copyright: (c) 2018/2021 Gianluca Pernigotto @@ -32,7 +32,7 @@ def get_bmp(imgfile, size): """ - Given a file and a size, converts to bmp + Given a file and a size, converts to bmp """ img = SVGimage.CreateFromFile(imgfile) diff --git a/videomass3/vdms_utils/utils.py b/videomass3/vdms_utils/utils.py index 3ad8dde3..beb75f43 100644 --- a/videomass3/vdms_utils/utils.py +++ b/videomass3/vdms_utils/utils.py @@ -39,6 +39,7 @@ def format_bytes(num): strings human readable, e.g. out = format_bytes(9909043.20) It return a string digit with metric suffix + """ unit = ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] @@ -60,6 +61,7 @@ def to_bytes(string): Convert given size string to bytes, e.g. out = to_bytes('9.45MiB') It return a number 'float' object. + """ value = 0.0 unit = ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] @@ -79,6 +81,7 @@ def get_seconds(timeformat): """ This is the old implementation to get time human to seconds, e.g. get_seconds('00:02:00'). Return int(seconds) object. + """ if timeformat == 'N/A': return int('0')