Repository navigation
Expand file tree
/
Copy pathNotes.txt
More file actions
34 lines (28 loc) · 1.75 KB
/
Copy pathNotes.txt
File metadata and controls
34 lines (28 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Code Relocations:
--libPINCE
GuiUtils.py is used to contain GUI related utility functions
SysUtils.py is used to contain all useful but non-GDB related libraries such as psutils
GDB_Engine.py is used to contain all GDB related functions
type_defs.py is used to contain all static&shared variable definitions
All codes that'll be injected to the inferior go to the folder "Injection"
/gdb_python_script/ contains all the python scripts that'll invoked from the gdb
PINCE.py is used to interract with GUI and other utility libraries
/media/ contains all the images, icons n' stuff
/pince-non-stop-files/ contains old codes that made the non-stop mode alive. It'll be re-implemented when the project finishes at basic level, this folder is just a... museum(?) for now
**Don't touch anything in GUI folder, it contains auto-generated codes created by pyuic
27/3/2017 - All GUI classes that will be instanced multiple times must contain these code blocks to prevent getting removed by garbage collector:
global instances
instances.append(self)
def closeEvent(self, QCloseEvent):
global instances
instances.remove(self)
If you need to only create one instance of a GUI class, use this instead to create the instance:
try:
self.window.show()
except AttributeError:
self.window = WindowForm(self) # self parameter is optional
self.window.show()
self.window.activateWindow()
If you need to pass self as a parameter, please don't use 'super().__init__(parent=parent)' in the child class, it makes Qt hide the child window. Use this in the child instead:
super().__init__()
self.parent = lambda: parent # A quick hack to make other functions see the correct parent(). But Qt won't see it, so there'll be no bugs