Skip to content

Commit

Permalink
Add editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
helge000 committed Apr 25, 2022
1 parent e4b872b commit 2f4197f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8

[*.py]
indent_style = space
indent_size = 4

[*.ui]
indent_style = space
indent_size = 2

[*.json]
indent_style = tab
indent_size = 4


4 changes: 2 additions & 2 deletions rpmbuild/wacom-gui.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Name: wacom-gui
Version: 0.4.0
Release: rc1
Release: rc2
Summary: Wacom PyQt5 GUI
License: GPLv3
BuildArch: noarch
Expand Down Expand Up @@ -46,7 +46,7 @@ rm -f data/layouts/Makefile.*

%install
%__rm -rf %{buildroot}
cd wacom-gui
cd wacom-gui/wacom-gui
install -m 0755 -d %{buildroot}/usr/local/%{name}
cp -r * %{buildroot}/usr/local/%{name}
cd ../rpmbuild
Expand Down
6 changes: 3 additions & 3 deletions wacom-gui/pad.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def load_kde(self):
if not os.path.isdir(config):
os.mkdir(config)
except Exception as e:
print e
print(e)

def _load_keyboard_shortcuts(self):
custom = {}
Expand Down Expand Up @@ -209,7 +209,7 @@ def init_keys(self, dev_id, image, buttons, cmds):
svg_vspace.changeSize(0, img_h, QSizePolicy.Fixed, QSizePolicy.Fixed)
svg_hspace.changeSize(img_w, hspace, QSizePolicy.Fixed, QSizePolicy.Fixed)
except Exception as e:
print (e)
print(e)
# start to build...
# add top row
if self.buttons['top'].__len__() != 0:
Expand Down Expand Up @@ -355,7 +355,7 @@ def init(self, dev_id, settings):
text = "%s - %s" % (control, data[fingers][control]['text'])
self.guide.addWidget(GuideWidget(data[fingers][control]['icon'], text))
except Exception as e:
print (e)
print(e)
group = QGroupBox("Touch Controls")
group.setFixedSize(290, 80)
group.setLayout(touch)
Expand Down

0 comments on commit 2f4197f

Please sign in to comment.