Skip to content

Latest commit

 

History

History
99 lines (96 loc) · 5.71 KB

NOTES.md

File metadata and controls

99 lines (96 loc) · 5.71 KB

Locate32 NOTES '''

sources:

freaking python garbage collection eats program after showing window: http://stackoverflow.com/questions/18061178/pyqt-window-closes-after-launch

design in qt creator, save, then convert to py file

sudo apt-get install qtcreator pyqt4-dev-tools

pyuic4 mainwindow.ui -o mainwindow.py

redirect output of subproces: https://stackoverflow.com/a/3247271

dump variable:

from inspect import getmembers

from pprint import pprint

pprint(getmembers(output))

dump variable to file

from inspect import getmembers

from pprint import pprint

logFile=open('mylogfile'+'.txt', 'w')

pprint(getmembers(dataobject), logFile)

definite way (NOT GRACEFUL): https://stackoverflow.com/a/6072360

analyze segmentation fault: http://stackoverflow.com/a/10035594

gdb python

(gdb) run /path/to/script.py

## wait for segfault

(gdb) backtrace

# stack trace of the c code

#TODO

#DONE_get update command to work #\show notifications for update success/failure #DONE->make search screen #\use QColumnView and QFileSystemModel instead of QTextBrowser for results #fix #QObject::connect: Cannot queue arguments of type 'QTextCursor' #(Make sure 'QTextCursor' is registered using qRegisterMetaType().) #http://www.qtforum.org/article/24502/gui-crash.html #DONE\fix grey search button after search is done #make settings screen #make about screen #make paths for kdesudo and updatedb variables and settings #DONE_gksu/gksudo check #DONE-fix main thread so you can use Ctrl+C to break #DONE-don't show right click context menu on startup or no search results #DONE-show search screen on doubleclick #DONE-double check animation loop(when killing updatedb) #DONE-clicking search sometimes generates Segmentation fault #DONE-fix resizing and low res window looks #DONE-ask if sure when searching for nothing (*) #SIZE SORTS BY STRING, NOT BY INT-sort by filename/date created/size

DONE-fix ProxyModel(QSortFilterProxyModel) so we can get index to get stuff for context menu

#DONE-add Open with.. dialog #-get Settings screen to work, start using conf file? #-Ctrl+F in search window to search results? #-proper way to kill updatedb thread, only kill our updatedb thread not every process updatedb #-look into:

(during startup)

Bus::open: Can not get ibus-daemon's address.

IBusInputContext::createInputContext: no connection to ibus-d

#-look into:

#when building search list)

#QObject::connect: Cannot queue arguments of type 'Qt::Orientation'

(Make sure 'Qt::Orientation' is registered using qRegisterMetaType()

#-clean code

#todolist for next version: #-multiple search button presses and it segfaults? #-after search mouse cursor stays on BusyCursor?

'''