diff options
author | rahulp13 | 2020-02-11 00:20:41 +0530 |
---|---|---|
committer | rahulp13 | 2020-02-11 00:20:41 +0530 |
commit | 4245ac1c7a4ef6a4e650ab666327210f2c812e3e (patch) | |
tree | 48a3b78ecf0a80f036a265a61242eff5a75ab061 /src/createKicadLibrary.py | |
parent | 28bdf8d26cc422e27a52f33155555db877d07c6e (diff) | |
download | nghdl-4245ac1c7a4ef6a4e650ab666327210f2c812e3e.tar.gz nghdl-4245ac1c7a4ef6a4e650ab666327210f2c812e3e.tar.bz2 nghdl-4245ac1c7a4ef6a4e650ab666327210f2c812e3e.zip |
pep8 compliant
Diffstat (limited to 'src/createKicadLibrary.py')
-rw-r--r-- | src/createKicadLibrary.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/createKicadLibrary.py b/src/createKicadLibrary.py index 144fb66..966c9d6 100644 --- a/src/createKicadLibrary.py +++ b/src/createKicadLibrary.py @@ -29,8 +29,8 @@ class AutoSchematic(QtGui.QWidget): elif (xmlFound == self.xml_loc + '/Nghdl'): print('Library already exists...') ret = QtGui.QMessageBox.warning( - self, "Warning", '''<b>Library files for this model already ''' - '''exist. Do you want to overwrite it?</b><br/> + self, "Warning", '''<b>Library files for this model ''' + + '''already exist. Do you want to overwrite it?</b><br/> If yes press ok, else cancel it and ''' + '''change the name of your vhdl file.''', QtGui.QMessageBox.Ok, QtGui.QMessageBox.Cancel @@ -251,10 +251,12 @@ class PortInfo: if re.match(r'^\s*$', line): pass else: - in_items = re.findall("IN", - line, re.MULTILINE | re.IGNORECASE) - out_items = re.findall("OUT", - line, re.MULTILINE | re.IGNORECASE) + in_items = re.findall( + "IN", line, re.MULTILINE | re.IGNORECASE + ) + out_items = re.findall( + "OUT", line, re.MULTILINE | re.IGNORECASE + ) if in_items: input_list.append(line.split()) if out_items: |