mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 20:24:49 +02:00
Removed live and commented print statements
This commit is contained in:
parent
e61e40bdf0
commit
7f965d8506
3 changed files with 1 additions and 14 deletions
|
|
@ -114,7 +114,6 @@ def del_category(self):
|
|||
'<b>permanently deleted</b>. Are you sure?')
|
||||
+'</p>', 'tag_category_delete', self):
|
||||
return
|
||||
print 'here', self.current_category
|
||||
if self.current_cat_name is not None:
|
||||
if self.current_cat_name == unicode(self.category_box.currentText()):
|
||||
del self.categories[self.current_cat_label][self.current_cat_name]
|
||||
|
|
|
|||
|
|
@ -227,7 +227,6 @@ def initialize(self, _saved_searches, _search_box, colorize=False, help_text=_('
|
|||
self.clear_to_help()
|
||||
|
||||
def normalize_state(self):
|
||||
#print 'in normalize_state'
|
||||
self.setEditText('')
|
||||
self.line_edit.setStyleSheet(
|
||||
'QLineEdit { color: black; background-color: %s; }' %
|
||||
|
|
@ -235,7 +234,6 @@ def normalize_state(self):
|
|||
self.help_state = False
|
||||
|
||||
def clear_to_help(self):
|
||||
#print 'in clear_to_help'
|
||||
self.setToolTip(self.tool_tip_text)
|
||||
self.initialize_saved_search_names()
|
||||
self.setEditText(self.help_text)
|
||||
|
|
@ -246,12 +244,10 @@ def clear_to_help(self):
|
|||
self.normal_background)
|
||||
|
||||
def focus_out(self, event):
|
||||
#print 'in focus_out'
|
||||
if self.currentText() == '':
|
||||
self.clear_to_help()
|
||||
|
||||
def key_pressed(self, event):
|
||||
#print 'in key_pressed'
|
||||
if self.help_state:
|
||||
self.normalize_state()
|
||||
|
||||
|
|
@ -260,7 +256,6 @@ def mouse_released(self, event):
|
|||
self.normalize_state()
|
||||
|
||||
def saved_search_selected (self, qname):
|
||||
#print 'in saved_search_selected'
|
||||
qname = unicode(qname)
|
||||
if qname is None or not qname.strip():
|
||||
return
|
||||
|
|
@ -270,7 +265,6 @@ def saved_search_selected (self, qname):
|
|||
self.setToolTip(self.saved_searches.lookup(qname))
|
||||
|
||||
def initialize_saved_search_names(self):
|
||||
#print 'in initialize_saved_search_names'
|
||||
self.clear()
|
||||
qnames = self.saved_searches.names()
|
||||
self.addItems(qnames)
|
||||
|
|
@ -278,7 +272,6 @@ def initialize_saved_search_names(self):
|
|||
|
||||
# SIGNALed from the main UI
|
||||
def delete_search_button_clicked(self):
|
||||
#print 'in delete_search_button_clicked'
|
||||
if not confirm('<p>'+_('The selected search will be '
|
||||
'<b>permanently deleted</b>. Are you sure?')
|
||||
+'</p>', 'saved_search_delete', self):
|
||||
|
|
@ -293,7 +286,6 @@ def delete_search_button_clicked(self):
|
|||
|
||||
# SIGNALed from the main UI
|
||||
def save_search_button_clicked(self):
|
||||
#print 'in save_search_button_clicked'
|
||||
name = unicode(self.currentText())
|
||||
if self.help_state or not name.strip():
|
||||
name = unicode(self.search_box.text()).replace('"', '')
|
||||
|
|
@ -310,10 +302,7 @@ def save_search_button_clicked(self):
|
|||
|
||||
# SIGNALed from the main UI
|
||||
def copy_search_button_clicked (self):
|
||||
#print 'in copy_search_button_clicked'
|
||||
idx = self.currentIndex();
|
||||
if idx < 0:
|
||||
return
|
||||
self.search_box.set_search_string(self.saved_searches.lookup(unicode(self.currentText())))
|
||||
|
||||
|
||||
self.search_box.set_search_string(self.saved_searches.lookup(unicode(self.currentText())))
|
||||
|
|
@ -212,7 +212,6 @@ def evaluate_token(self, argument):
|
|||
location = argument[0]
|
||||
query = argument[1]
|
||||
if location.lower() == 'search':
|
||||
# print "looking for named search " + query
|
||||
if query.startswith('='):
|
||||
query = query[1:]
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue