Skip to content

Commit aa53609

Browse files
committed
restructured project
1 parent 9694f1f commit aa53609

File tree

6 files changed

+16
-5
lines changed

6 files changed

+16
-5
lines changed

Diff for: note_point_extractor/main.py renamed to note_point_extractor/__main__.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
from PyQt4 import QtGui
22
from PyQt4.QtCore import *
33
from PyQt4.QtGui import *
4+
45
import sys
5-
import gui
66

7-
from library import text_handler
7+
8+
from .gui import gui
9+
from .library import text_handler
810

911

1012
class NoteExtractor(QtGui.QMainWindow, gui.Ui_MainWindow):
1113
def __init__(self, parent=None):
1214
super(NoteExtractor, self).__init__(parent)
1315
self.setupUi(self)
14-
self.button_output.clicked.connect(self.output_function)
16+
self.button_output. clicked.connect(self.output_function)
1517
self.button_markdown_output.clicked.connect(
1618
self.output_markdown_function)
1719

@@ -23,10 +25,10 @@ def output_markdown_function(self):
2325
content = self.getcontents()
2426
self.setcontents(text_handler.process_content(content, True))
2527

26-
def getcontents(self)->str:
28+
def getcontents(self) -> str:
2729
return self.textEdit_input.toPlainText()
2830

29-
def setcontents(self, value: str)->None:
31+
def setcontents(self, value: str) -> None:
3032
self.textedit_output.setText(value)
3133

3234

Diff for: note_point_extractor/gui/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import gui
File renamed without changes.
File renamed without changes.

Diff for: note_point_extractor/library/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import text_handler

Diff for: note_point_extractor/readme.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Note Point Extractor
2+
3+
## Running
4+
5+
```
6+
python3 -m note_point_extractor
7+
```

0 commit comments

Comments
 (0)