Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7bde223

Browse files
committed
autopep8
1 parent d17578d commit 7bde223

File tree

3 files changed

+32
-33
lines changed

3 files changed

+32
-33
lines changed

‎checkMissingGlyph.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@
66
import collections
77
import fontforge
88

9-
#ignore warning
9+
#ignore warning
1010
# import warnings
1111
# warnings.filterwarnings("ignore")
1212

13-
# can use 3 or 2
13+
from PyQt5.QtCore import Qt
14+
from PyQt5.QtGui import QIntValidator
1415
from PyQt5.QtWidgets import (QFileDialog, QDialog, QPushButton,
1516
QLineEdit, QLabel, QCheckBox,
1617
QApplication, QVBoxLayout)
17-
from PyQt5.QtCore import Qt
18-
from PyQt5.QtGui import QIntValidator
1918

2019

2120
class askSetting(QDialog):
@@ -95,7 +94,7 @@ def bye(self, items):
9594
ask = askSetting(app=app, items=items)
9695
ask.show()
9796
rtnCode = app.exec_()
98-
#If press OK button rtnCode should be 1
97+
#If press OK button rtnCode should be 1
9998
if rtnCode != 1:
10099
print('User abort by closing Setting dialog')
101100
sys.exit
@@ -106,10 +105,10 @@ def bye(self, items):
106105
f = open(items[inFilePrompt], 'r', encoding="utf-8")
107106

108107
ttfFile.selection.none()
109-
## file contents
110-
#問
111-
#问
112-
## ie. \w
108+
# file contents
109+
#問
110+
#问
111+
# ie. \w
113112
## ie. word
114113

115114
count = 0

‎copyReferenceAtoB.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@
77
import collections
88
import fontforge
99

10-
#ignore warning
10+
#ignore warning
1111
# import warnings
1212
# warnings.filterwarnings("ignore")
1313

14-
# can use 3 or 2
14+
fromPyQt5.QtCoreimportQt
1515
from PyQt5.QtWidgets import (QFileDialog, QDialog, QPushButton,
1616
QLineEdit, QLabel,
1717
QApplication, QVBoxLayout)
18-
from PyQt5.QtCore import Qt
1918

2019

2120
class askSetting(QDialog):
@@ -60,7 +59,7 @@ def bye(self, items):
6059

6160
for key in self.lineedits.keys():
6261
self.items[key] = self.lineedits[key].text()
63-
62+
6463
self.items['getOpenFileName'] = fileName[0]
6564
self.close()
6665
self.app.exit(1)
@@ -80,7 +79,7 @@ def bye(self, items):
8079
ask = askSetting(app=app, items=items)
8180
ask.show()
8281
rtnCode = app.exec_()
83-
#If press OK button rtnCode should be 1
82+
#If press OK button rtnCode should be 1
8483
if rtnCode != 1:
8584
print('User abort by closing Setting dialog')
8685
sys.exit
@@ -91,10 +90,10 @@ def bye(self, items):
9190
f = open(items[inFilePrompt], 'r', encoding="utf-8")
9291

9392
ttfFile.selection.none()
94-
## file contents
95-
#問
96-
#问
97-
## ie. \w
93+
# file contents
94+
#問
95+
#问
96+
# ie. \w
9897
## ie. word
9998
count = 0
10099
for line in f:

‎minimizeFont.py

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@
77
import collections
88
import fontforge
99

10-
#ignore warning
10+
#ignore warning
1111
# import warnings
1212
# warnings.filterwarnings("ignore")
1313

14-
# can use 3 or 2
14+
from PyQt5.QtCore import Qt
15+
from PyQt5.QtGui import QIntValidator
1516
from PyQt5.QtWidgets import (QFileDialog, QDialog, QPushButton,
1617
QLineEdit, QLabel, QCheckBox,
1718
QApplication, QVBoxLayout)
18-
from PyQt5.QtCore import Qt
19-
from PyQt5.QtGui import QIntValidator
2019

2120
useUnichr = True
2221
if not useUnichr:
@@ -110,7 +109,7 @@ def bye(self, items):
110109
ask = askSetting(app=app, items=items)
111110
ask.show()
112111
rtnCode = app.exec_()
113-
#If press OK button rtnCode should be 1
112+
#If press OK button rtnCode should be 1
114113
if rtnCode != 1:
115114
print('User abort by closing Setting dialog')
116115
sys.exit
@@ -121,11 +120,19 @@ def bye(self, items):
121120
f = open(items[inFilePrompt], 'r', encoding="utf-8")
122121

123122
ttfFile.selection.none()
124-
## file contents
125-
#問
126-
#问
127-
## ie. \w
123+
# file contents
124+
#問
125+
#问
126+
# ie. \w
128127
## ie. word
128+
129+
# Pseudo Old FontForge Script
130+
# SelectNone()
131+
# SelectMore(...)
132+
# SelectInvert()
133+
# Clear()
134+
# Generate()
135+
###
129136
count = 0
130137
for line in f:
131138
words = line.encode("raw_unicode_escape").split()
@@ -138,12 +145,6 @@ def bye(self, items):
138145
sys.stdout.write("\n")
139146
sys.stdout.flush()
140147
if words[0].startswith(b'\u'):
141-
###
142-
# SelectNone()
143-
# SelectMore(...)
144-
# SelectInvert()
145-
# Clear()
146-
###
147148
# print(words[0].decode('unicode_escape'))
148149
ttfFile.selection.select(("more", None), words[0][1:])
149150
elif len(words[0]) == 1:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /