Skip to content

Commit

Permalink
upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikachu2333 authored Aug 15, 2023
1 parent 49a071f commit f605576
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions main.aardio
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,45 @@ import fsys.dlg
import process
//import process.popen
import win.ui
import win.ui.tooltip
/*DSG{{*/
mainForm = win.form(cls="RIMG_GUI_FORM";text="rimage_gui";right=587;bottom=398;border="thin";max=false)
mainForm.add(
auto_delete={cls="checkbox";text="自动删除 AutoDel";left=418;top=7;right=576;bottom=32;bgcolor=65535;color=255;font=LOGFONT(h=-16;name='微软雅黑');z=14};
edit_d={cls="edit";text="95";left=539;top=152;right=576;bottom=177;align="center";edge=1;font=LOGFONT(h=-16;name='微软雅黑');num=1;z=18};
edit_o_d={cls="edit";left=156;top=366;right=458;bottom=391;autovscroll=false;edge=1;font=LOGFONT(h=-14;name='微软雅黑');readonly=1;z=9};
edit_o_q={cls="edit";text="85";left=539;top=53;right=576;bottom=78;align="center";edge=1;font=LOGFONT(h=-16;name='微软雅黑');num=1;z=6};
edit_q={cls="edit";text="100";left=539;top=103;right=576;bottom=128;align="center";edge=1;font=LOGFONT(h=-16;name='微软雅黑');num=1;z=11};
edit_rs={cls="edit";left=521;top=243;right=576;bottom=268;align="center";edge=1;font=LOGFONT(h=-16;name='微软雅黑');num=1;z=24};
edit_s={cls="edit";text="_updated";left=97;top=301;right=187;bottom=326;align="center";edge=1;font=LOGFONT(h=-16;name='微软雅黑');z=23};
edit_t={cls="edit";text="4";left=291;top=301;right=328;bottom=326;align="center";edge=1;font=LOGFONT(h=-16;name='微软雅黑');num=1;z=13};
file_list={cls="listbox";left=8;top=35;right=415;bottom=288;acceptfiles=1;edge=1;font=LOGFONT(h=-14;name='微软雅黑');hscroll=1;items={};vscroll=1;z=25};
out_format={cls="combobox";left=479;top=300;right=566;bottom=326;edge=1;font=LOGFONT(h=-16;name='微软雅黑');items={"jpg";"png";"oxipng";"webp"};mode="dropdown";z=8};
process_show={cls="edit";left=8;top=338;right=458;bottom=360;autovscroll=false;edge=1;font=LOGFONT(h=-14;name='微软雅黑');readonly=1;z=16};
radio_H_c={cls="radiobutton";text="长 Height";left=424;top=234;right=519;bottom=253;font=LOGFONT(h=-14;name='微软雅黑');z=20};
radio_No_c={cls="radiobutton";text="不变 Original";left=424;top=211;right=537;bottom=230;checked=1;font=LOGFONT(h=-14;name='微软雅黑');z=19};
radio_W_c={cls="radiobutton";text="宽 Width";left=424;top=257;right=519;bottom=276;font=LOGFONT(h=-14;name='微软雅黑');z=21};
resize_box={cls="groupbox";text="Resize_choose";left=418;top=191;right=582;bottom=285;edge=1;font=LOGFONT(name='微软雅黑');z=1};
show_hide={cls="checkbox";text="隐藏执行 HiddenExecute";left=183;top=7;right=396;bottom=32;bgcolor=65535;checked=1;color=255;font=LOGFONT(h=-16;name='微软雅黑');z=15};
start_cov={cls="button";text="开始 Start";left=466;top=338;right=579;bottom=391;border=1;default=1;font=LOGFONT(h=-17;name='微软雅黑');z=4};
static_dithering={cls="static";text="颜色抖动
Dithering";left=418;top=142;right=531;bottom=188;align="center";font=LOGFONT(h=-16;name='微软雅黑');notify=1;transparent=1;z=17};
static_file_list={cls="static";text="文件列表 File list";left=3;top=7;right=137;bottom=32;align="center";center=1;font=LOGFONT(h=-16;name='微软雅黑');notify=1;transparent=1;z=3};
static_out_dir={cls="static";text="输出目录 Out-Dir:";left=8;top=366;right=156;bottom=391;align="center";center=1;font=LOGFONT(h=-16;name='微软雅黑');notify=1;transparent=1;z=2};
static_out_format={cls="static";text="输出格式
Out-Format";left=360;top=290;right=473;bottom=336;align="center";font=LOGFONT(h=-16;name='微软雅黑');notify=1;transparent=1;z=7};
static_out_quailty={cls="static";text="输出质量
Out-Quality";left=418;top=43;right=531;bottom=89;align="center";font=LOGFONT(h=-16;name='微软雅黑');notify=1;transparent=1;z=5};
static_quantization={cls="static";text="量化程度
Quantization";left=418;top=93;right=531;bottom=139;align="center";font=LOGFONT(h=-16;name='微软雅黑');notify=1;transparent=1;z=10};
static_suffix={cls="static";text="输出后缀
Suffix";left=15;top=290;right=93;bottom=336;align="center";font=LOGFONT(h=-16;name='微软雅黑');notify=1;transparent=1;z=22};
static_thread={cls="static";text="线程数
Threads";left=208;top=290;right=286;bottom=336;align="center";font=LOGFONT(h=-16;name='微软雅黑');notify=1;transparent=1;z=12}
)
/*}}*/

if((not io.exist(io._exedir + "rimage.exe")) or (io.getSize(io._exedir + "rimage.exe") != 9529344)){
import win.ui.tooltip
/*DSG{{*/
mainForm = win.form(cls="RIMG_GUI_FORM";text="rimage_gui";right=587;bottom=398;border="thin";max=false)
mainForm.add(
auto_delete={cls="checkbox";text="自动删除 AutoDel";left=418;top=7;right=576;bottom=32;bgcolor=65535;color=255;font=LOGFONT(h=-16;name='微软雅黑');z=14};
edit_d={cls="edit";text="95";left=539;top=152;right=576;bottom=177;align="center";edge=1;font=LOGFONT(h=-16;name='微软雅黑');num=1;z=18};
edit_o_d={cls="edit";left=156;top=366;right=458;bottom=391;autovscroll=false;edge=1;font=LOGFONT(h=-14;name='微软雅黑');readonly=1;z=9};
edit_o_q={cls="edit";text="85";left=539;top=53;right=576;bottom=78;align="center";edge=1;font=LOGFONT(h=-16;name='微软雅黑');num=1;z=6};
edit_q={cls="edit";text="100";left=539;top=103;right=576;bottom=128;align="center";edge=1;font=LOGFONT(h=-16;name='微软雅黑');num=1;z=11};
edit_rs={cls="edit";left=521;top=243;right=576;bottom=268;align="center";edge=1;font=LOGFONT(h=-16;name='微软雅黑');num=1;z=24};
edit_s={cls="edit";text="_updated";left=97;top=301;right=187;bottom=326;align="center";edge=1;font=LOGFONT(h=-16;name='微软雅黑');z=23};
edit_t={cls="edit";text="4";left=291;top=301;right=328;bottom=326;align="center";edge=1;font=LOGFONT(h=-16;name='微软雅黑');num=1;z=13};
file_list={cls="listbox";left=8;top=35;right=415;bottom=288;acceptfiles=1;edge=1;font=LOGFONT(h=-14;name='微软雅黑');hscroll=1;items={};vscroll=1;z=25};
out_format={cls="combobox";left=479;top=300;right=566;bottom=326;edge=1;font=LOGFONT(h=-16;name='微软雅黑');items={"jpg";"png";"oxipng";"webp"};mode="dropdown";z=8};
process_show={cls="edit";left=8;top=338;right=458;bottom=360;autovscroll=false;edge=1;font=LOGFONT(h=-14;name='微软雅黑');readonly=1;z=16};
radio_H_c={cls="radiobutton";text="长 Height";left=424;top=234;right=519;bottom=253;font=LOGFONT(h=-14;name='微软雅黑');z=20};
radio_No_c={cls="radiobutton";text="不变 Original";left=424;top=211;right=537;bottom=230;checked=1;font=LOGFONT(h=-14;name='微软雅黑');z=19};
radio_W_c={cls="radiobutton";text="宽 Width";left=424;top=257;right=519;bottom=276;font=LOGFONT(h=-14;name='微软雅黑');z=21};
resize_box={cls="groupbox";text="Resize_choose";left=418;top=191;right=582;bottom=285;edge=1;font=LOGFONT(name='微软雅黑');z=1};
show_hide={cls="checkbox";text="隐藏执行 HiddenExecute";left=183;top=7;right=396;bottom=32;bgcolor=65535;checked=1;color=255;font=LOGFONT(h=-16;name='微软雅黑');z=15};
start_cov={cls="button";text="开始 Start";left=466;top=338;right=579;bottom=391;border=1;default=1;font=LOGFONT(h=-17;name='微软雅黑');z=4};
static_dithering={cls="static";text="颜色抖动
Dithering";left=418;top=142;right=531;bottom=188;align="center";font=LOGFONT(h=-16;name='微软雅黑');notify=1;transparent=1;z=17};
static_file_list={cls="static";text="文件列表 File list";left=3;top=7;right=137;bottom=32;align="center";center=1;font=LOGFONT(h=-16;name='微软雅黑');notify=1;transparent=1;z=3};
static_out_dir={cls="static";text="输出目录 Out-Dir:";left=8;top=366;right=156;bottom=391;align="center";center=1;font=LOGFONT(h=-16;name='微软雅黑');notify=1;transparent=1;z=2};
static_out_format={cls="static";text="输出格式
Out-Format";left=360;top=290;right=473;bottom=336;align="center";font=LOGFONT(h=-16;name='微软雅黑');notify=1;transparent=1;z=7};
static_out_quailty={cls="static";text="输出质量
Out-Quality";left=418;top=43;right=531;bottom=89;align="center";font=LOGFONT(h=-16;name='微软雅黑');notify=1;transparent=1;z=5};
static_quantization={cls="static";text="量化程度
Quantization";left=418;top=93;right=531;bottom=139;align="center";font=LOGFONT(h=-16;name='微软雅黑');notify=1;transparent=1;z=10};
static_suffix={cls="static";text="输出后缀
Suffix";left=15;top=290;right=93;bottom=336;align="center";font=LOGFONT(h=-16;name='微软雅黑');notify=1;transparent=1;z=22};
static_thread={cls="static";text="线程数
Threads";left=208;top=290;right=286;bottom=336;align="center";font=LOGFONT(h=-16;name='微软雅黑');notify=1;transparent=1;z=12}
)
/*}}*/
if((not io.exist(io._exedir + "rimage.exe")) or (io.getSize(io._exedir + "rimage.exe") != 9596416)){
thread.invoke(
function(){
io.remove(io._exedir + "rimage.exe")
Expand Down

0 comments on commit f605576

Please sign in to comment.