Skip to content

Commit

Permalink
update release
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanslack committed Sep 5, 2021
1 parent d393611 commit e37f9a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions videomass3/vdms_panels/choose_topic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
"""
Expand Down
4 changes: 2 additions & 2 deletions videomass3/vdms_utils/get_bmpfromsvg.py
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
Copyright: (c) 2018/2021 Gianluca Pernigotto <[email protected]>
Expand Down Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions videomass3/vdms_utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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"]
Expand All @@ -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')
Expand Down

0 comments on commit e37f9a9

Please sign in to comment.