Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/elfmz/far2l.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorm32 <grzegorz.makarewicz@gmail.com>2022-01-08 02:09:12 +0300
committerm32 <grzegorz.makarewicz@gmail.com>2022-01-08 02:09:12 +0300
commit1a6676b1ce101aa60193f0e3f48ad548f4b72a97 (patch)
tree07fb3d3ca3f87c7488976801d9b9bfe1210f391f /python/configs
parent3cfaee6140ce0052b1f0bf17f9ef360f833acceb (diff)
SetText simplification
Diffstat (limited to 'python/configs')
-rw-r--r--python/configs/plug/plugins/usizer.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/python/configs/plug/plugins/usizer.py b/python/configs/plug/plugins/usizer.py
index 12639621..0d53097f 100644
--- a/python/configs/plug/plugins/usizer.py
+++ b/python/configs/plug/plugins/usizer.py
@@ -23,16 +23,10 @@ class Plugin(PluginBase):
if Msg == self.ffic.DN_INITDIALOG:
log.debug('INITDIALOG')
try:
- s = self.s2f("vapath initial")
- dlg.SetText(dlg.ID_vapath, self.ffi.cast('LONG_PTR', s))
- log.debug('1')
- s = self.s2f("vbpath initial")
- dlg.SetText(dlg.ID_vbpath, self.ffi.cast('LONG_PTR', s))
- log.debug('2')
+ dlg.SetText(dlg.ID_vapath, "vapath initial")
+ dlg.SetText(dlg.ID_vbpath, "vbpath initial")
dlg.Disable(dlg.ID_vbpath)
- log.debug('3')
dlg.SetCheck(dlg.ID_vallow, 1)
- log.debug('4')
dlg.SetFocus(dlg.ID_vseconds)
except:
log.exception('bang')