Skip to content

Commit f3f12f8

Browse files
committed
Error Capture
1 parent 34ea8eb commit f3f12f8

19 files changed

Lines changed: 440 additions & 121 deletions

Icons/PyRunImg.png

6.15 KB
Loading

Icons/Run.png

-2.05 KB
Loading

PyRun.ico

22 KB
Binary file not shown.

PyRun.pro

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,22 @@ SOURCES += main.cpp\
2222
HEADERS += mainview.h \
2323
pythonsyntaxhighlighter.h \
2424
codeeditor.h \
25-
snippets.h
25+
snippets.h \
26+
emb.h
2627

2728
FORMS += mainview.ui
2829

2930
QMAKE_CXXFLAGS += -std=c++11
3031

31-
win32: LIBS += -L$$PWD/../../TermPack/data/python/libs/ -lpython27
32-
33-
INCLUDEPATH += $$PWD/../../TermPack/data/python/include
34-
DEPENDPATH += $$PWD/../../TermPack/data/python/include
3532

3633
RESOURCES += \
3734
PyRunResources.qrc
3835

39-
RC_FILE = windows_res.rc
36+
RC_FILE = PyRun.rc
37+
38+
39+
40+
win32: LIBS += -L$$PWD/../Python34/libs/ -lpython34
41+
42+
INCLUDEPATH += $$PWD/../Python34/include
43+
DEPENDPATH += $$PWD/../Python34/include

PyRun.rc

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#define MANIFEST 24
2+
#define IDR_VERSION1 1
3+
#define IDR_XPMANIFEST1 1
4+
5+
IDR_VERSION1 VERSIONINFO
6+
FILEVERSION 1,0,0,0
7+
PRODUCTVERSION 1,0,0,0
8+
FILEOS 0x00000004
9+
FILETYPE 0x00000000
10+
BEGIN
11+
BLOCK "StringFileInfo"
12+
BEGIN
13+
BLOCK "FFFF0000"
14+
BEGIN
15+
VALUE "FileVersion", "1.0.0.0\0"
16+
VALUE "ProductVersion", "1.0.0.0\0"
17+
VALUE "CompanyName", "Bhathiya\0"
18+
VALUE "FileDescription", "PyRun Tester\0"
19+
VALUE "InternalName", "PyRun Tester\0"
20+
VALUE "LegalCopyright", "PyRun Tester\0"
21+
VALUE "LegalTrademarks", "PyRun Tester\0"
22+
VALUE "OriginalFilename", "PyRun.exe\0"
23+
VALUE "ProductName", "PyRun Tester\0"
24+
END
25+
END
26+
BLOCK "VarFileInfo"
27+
BEGIN
28+
VALUE "Translation", 0xFFFF, 0x0000
29+
END
30+
END
31+
32+
IDR_XPMANIFEST1 MANIFEST "xpmanifest.xml"
33+
34+
100 ICON DISCARDABLE "PyRun.ico"
35+

PyRunResources.qrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<RCC>
22
<qresource prefix="/data">
33
<file>startme.py</file>
4-
<file>e.png</file>
54
<file>Icons/Clear.png</file>
65
<file>Icons/Open.png</file>
76
<file>Icons/Save.png</file>
@@ -10,6 +9,6 @@
109
<file>Icons/Add.png</file>
1110
<file>Icons/Load.png</file>
1211
<file>Icons/Remove.png</file>
13-
<file>el.png</file>
12+
<file>Icons/PyRunImg.png</file>
1413
</qresource>
1514
</RCC>

codeeditor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ void CodeEditor::keyPressEvent(QKeyEvent* e)
9898
case Qt::Key_Tab:
9999
QPlainTextEdit::insertPlainText(" ");
100100
break;
101-
//TODO Indentation
102-
// case Qt::Key_Enter:
103-
// case Qt::Key_Return:
104-
// break;
101+
// TODO Indentation
102+
// case Qt::Key_Enter:
103+
// case Qt::Key_Return:
104+
// break;
105105
default:
106106
QPlainTextEdit::keyPressEvent(e);
107107
}

e.ico

-22 KB
Binary file not shown.

e.png

-11.5 KB
Binary file not shown.

el.png

-2.08 KB
Binary file not shown.

0 commit comments

Comments
 (0)