kitbash 1.2.1__tar.gz → 1.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kitbash
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: kitbash is a program you can use to combine parts of various SFZ files into a
5
5
  Author-email: Leon Dionne <ldionne@dridesign.sh.cn>
6
6
  Description-Content-Type: text/markdown
@@ -31,7 +31,7 @@ from PyQt5.QtWidgets import QApplication
31
31
  from qt_extras import DevilBox
32
32
  from conn_jack import JackConnectError
33
33
 
34
- __version__ = "1.2.1"
34
+ __version__ = "1.2.2"
35
35
 
36
36
  APP_NAME = "kitbash"
37
37
  APP_PATH = os.path.dirname(__file__)
@@ -63,7 +63,7 @@ class GeometrySaver:
63
63
  def restore_geometry(self):
64
64
  if not hasattr(self, 'restoreGeometry'):
65
65
  logging.error('Object of type %s has no "restoreGeometry" function',
66
- type(self).__name__)
66
+ self.__class__.__name__)
67
67
  return
68
68
  geometry = settings().value(self.__geometry_key())
69
69
  if geometry is not None:
@@ -76,17 +76,17 @@ class GeometrySaver:
76
76
  def save_geometry(self):
77
77
  if not hasattr(self, 'saveGeometry'):
78
78
  logging.error('Object of type %s has no "saveGeometry" function',
79
- type(self).__name__)
79
+ self.__class__.__name__)
80
80
  return
81
81
  settings().setValue(self.__geometry_key(), self.saveGeometry())
82
82
  for splitter in self.findChildren(QSplitter):
83
83
  settings().setValue(self.__splitter_geometry_key(splitter), splitter.saveState())
84
84
 
85
85
  def __geometry_key(self):
86
- return '{}/geometry'.format(type(self).__name__)
86
+ return '{}/geometry'.format(self.__class__.__name__)
87
87
 
88
88
  def __splitter_geometry_key(self, splitter):
89
- return '{}/{}/geometry'.format(type(self).__name__, splitter.objectName())
89
+ return '{}/{}/geometry'.format(self.__class__.__name__, splitter.objectName())
90
90
 
91
91
 
92
92
  # end kitbash/gui/__init__.py
@@ -8,7 +8,6 @@ Provides MainWindow class and
8
8
  import os, logging, json
9
9
  from tempfile import mkstemp
10
10
  from os.path import dirname, basename, realpath, exists, join, splitext
11
- from collections import deque
12
11
  from functools import partial
13
12
  from signal import signal, SIGINT, SIGTERM
14
13
 
@@ -25,7 +24,6 @@ from PyQt5.QtGui import QIcon
25
24
  from qt_extras import ShutUpQT, SigBlock, DevilBox
26
25
  from qt_extras.list_layout import VListLayout
27
26
  from recent_items_list import RecentItemsList
28
- from midi_notes import MIDI_DRUM_PITCHES
29
27
  from liquiphy import LiquidSFZ
30
28
  from conn_jack import JackConnectionManager
31
29
  from sfzen.drumkits import Drumkit, PercussionInstrument
@@ -28,7 +28,7 @@ requires = ["flit_core >=3.2,<4"]
28
28
  build-backend = "flit_core.buildapi"
29
29
 
30
30
  [bumpver]
31
- current_version = "1.2.1"
31
+ current_version = "1.2.2"
32
32
  version_pattern = "MAJOR.MINOR.PATCH"
33
33
  commit_message = "Bump version {old_version} -> {new_version}"
34
34
  commit = true
File without changes
File without changes
File without changes
File without changes