This commit is contained in:
Kovid Goyal 2010-09-17 13:10:18 -06:00
parent 228c648d5d
commit f16250c60d
2 changed files with 10 additions and 9 deletions

View File

@ -4,7 +4,7 @@ __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
'''Dialog to edit metadata in bulk''' '''Dialog to edit metadata in bulk'''
from threading import Thread from threading import Thread
import os, re, shutil import re
from PyQt4.Qt import QDialog, QGridLayout from PyQt4.Qt import QDialog, QGridLayout
from PyQt4 import QtGui from PyQt4 import QtGui
@ -203,6 +203,7 @@ class MetadataBulkDialog(QDialog, Ui_MetadataBulkDialog):
self.search_for.editTextChanged[str].connect(self.s_r_paint_results) self.search_for.editTextChanged[str].connect(self.s_r_paint_results)
self.replace_with.editTextChanged[str].connect(self.s_r_paint_results) self.replace_with.editTextChanged[str].connect(self.s_r_paint_results)
self.test_text.editTextChanged[str].connect(self.s_r_paint_results) self.test_text.editTextChanged[str].connect(self.s_r_paint_results)
self.central_widget.setCurrentIndex(0)
def s_r_field_changed(self, txt): def s_r_field_changed(self, txt):
txt = unicode(txt) txt = unicode(txt)

View File

@ -39,7 +39,7 @@
<item> <item>
<widget class="QTabWidget" name="central_widget"> <widget class="QTabWidget" name="central_widget">
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>2</number>
</property> </property>
<widget class="QWidget" name="tabWidgetPage1"> <widget class="QWidget" name="tabWidgetPage1">
<attribute name="title"> <attribute name="title">
@ -329,16 +329,16 @@ Future conversion of these books will use the default settings.</string>
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item>
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="filler"> <widget class="QLabel" name="filler">
<property name="text"> <property name="text">
<string> </string> <string/>
</property> </property>
</widget> </widget>
</item> </item>
</item>
<item row="3" column="0"> <item row="3" column="0">
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="xlabel_21">
<property name="text"> <property name="text">
<string>Search &amp;field:</string> <string>Search &amp;field:</string>
</property> </property>
@ -348,7 +348,7 @@ Future conversion of these books will use the default settings.</string>
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="3" column="1">
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="xlabel_2">
<property name="text"> <property name="text">
<string>&amp;Search for:</string> <string>&amp;Search for:</string>
</property> </property>
@ -358,7 +358,7 @@ Future conversion of these books will use the default settings.</string>
</widget> </widget>
</item> </item>
<item row="3" column="2"> <item row="3" column="2">
<widget class="QLabel" name="label_4"> <widget class="QLabel" name="xlabel_4">
<property name="text"> <property name="text">
<string>&amp;Replace with:</string> <string>&amp;Replace with:</string>
</property> </property>
@ -390,7 +390,7 @@ Future conversion of these books will use the default settings.</string>
<widget class="QComboBox" name="replace_func"/> <widget class="QComboBox" name="replace_func"/>
</item> </item>
<item row="6" column="1"> <item row="6" column="1">
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="xlabel_3">
<property name="text"> <property name="text">
<string>Test &amp;text</string> <string>Test &amp;text</string>
</property> </property>
@ -410,7 +410,7 @@ Future conversion of these books will use the default settings.</string>
</widget> </widget>
</item> </item>
<item row="7" column="0"> <item row="7" column="0">
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_31">
<property name="text"> <property name="text">
<string>Your test:</string> <string>Your test:</string>
</property> </property>