设置默认值

This commit is contained in:
halliday2023 2024-02-14 21:46:27 +08:00
parent d9749e42ee
commit 2e5622e4d5
2 changed files with 23 additions and 5 deletions

View File

@ -159,7 +159,7 @@ class Window:
# 获取界面输入 # 获取界面输入
file_dict = {} file_dict = {}
file_dict['filename'] = self.check_common(self.ui.fileNameText) file_dict['filename'] = self.check_common(self.ui.fileNameText)
file_dict['outputpath'] = self.check_common(self.ui.fileOutputText) file_dict['outputpath'] = self.ui.fileOutputText.text()
file_dict['fileinit'] = self.check_common(self.ui.fileInitRowsText) file_dict['fileinit'] = self.check_common(self.ui.fileInitRowsText)
# 是否持续 # 是否持续
file_dict['filecreating'] = self.ui.checkBox.isChecked() file_dict['filecreating'] = self.ui.checkBox.isChecked()

View File

@ -88,15 +88,26 @@
<string>filetest</string> <string>filetest</string>
</property> </property>
<property name="placeholderText"> <property name="placeholderText">
<string>qqq</string> <string>文件名</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLineEdit" name="fileOutputText"/> <widget class="QLineEdit" name="fileOutputText">
<property name="placeholderText">
<string>默认:./data</string>
</property>
</widget>
</item> </item>
<item> <item>
<widget class="QLineEdit" name="fileInitRowsText"/> <widget class="QLineEdit" name="fileInitRowsText">
<property name="text">
<string>10</string>
</property>
<property name="placeholderText">
<string/>
</property>
</widget>
</item> </item>
<item> <item>
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
@ -181,6 +192,9 @@
<property name="enabled"> <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="text">
<string>200</string>
</property>
</widget> </widget>
</item> </item>
<item> <item>
@ -202,7 +216,11 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLineEdit" name="fileDelRowsText"/> <widget class="QLineEdit" name="fileDelRowsText">
<property name="text">
<string>100</string>
</property>
</widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_7"> <widget class="QLabel" name="label_7">