Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_41256425
magic-pig
提交
8aa8a694
M
magic-pig
项目概览
qq_41256425
/
magic-pig
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
magic-pig
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8aa8a694
编写于
11月 24, 2022
作者:
C
czhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新的setup.py
上级
3989aa79
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
36 addition
and
4 deletion
+36
-4
service/setup.py
service/setup.py
+23
-0
web/src/components/windowHeader.vue
web/src/components/windowHeader.vue
+13
-4
未找到文件。
service/setup.py
浏览文件 @
8aa8a694
import
subprocess
import
sys
def
sh
(
command
):
p
=
subprocess
.
Popen
(
command
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
)
...
...
@@ -9,9 +10,31 @@ def sh(command):
lines
.
append
(
line
)
return
lines
def
version_check
():
version
=
int
(
sys
.
version
.
split
(
' '
)[
0
])
if
version
<
3.6
:
print
(
'退出安装程序, Python版本过低, 需要Python3.6以上版本'
)
exit
(
1
)
elif
version
>
3.8
:
print
(
'''
Python3.8以上的Python版本报错处理: System.NullReferenceException
参考: https://github.com/r0x0r/pywebview/issues/961
https://github.com/r0x0r/pywebview/pull/922/files
新增一行:webview\platforms\winforms.py
class BrowserForm(WinForms.Form):
def __init__(self, window):
super().__init__() # add this line
self.uid = window.uid
'''
)
if
__name__
==
"__main__"
:
sh
(
"pip3 config --global set global.index-url https://mirrors.aliyun.com/pypi/simple/"
)
sh
(
"pip3 config --global set install.trusted-host mirrors.aliyun.com"
)
sh
(
"pip3 install --upgrade pip"
)
sh
(
"pip3 install Flask"
)
sh
(
"pip3 install flasgger"
)
sh
(
"pip3 install pywebview"
)
sh
(
"pip3 install pip install clr-loader==0.1.7"
)
sh
(
"pip3 install pythonnet==3.0.0a2"
)
print
(
"
\n\n\t
Python setup success."
)
\ No newline at end of file
web/src/components/windowHeader.vue
浏览文件 @
8aa8a694
<
template
>
<div
class=
"window-header"
>
<font-awesome-icon
icon=
"caret-left"
class=
"click"
/>
<font-awesome-icon
icon=
"house"
class=
"click control-button"
/>
<font-awesome-icon
icon=
"caret-right"
class=
"click control-button"
/>
<font-awesome-icon
i
d=
"http-back"
@
mouseenter=
"mouseEnterHeaderIcon('http-back')"
@
mouseleave=
"mouseLeaveHeaderIcon('http-back')"
i
con=
"caret-left"
class=
"click"
/>
<font-awesome-icon
i
d=
"http-home"
@
mouseenter=
"mouseEnterHeaderIcon('http-home')"
@
mouseleave=
"mouseLeaveHeaderIcon('http-home')"
i
con=
"house"
class=
"click control-button"
/>
<font-awesome-icon
i
d=
"http-pre"
@
mouseenter=
"mouseEnterHeaderIcon('http-pre')"
@
mouseleave=
"mouseLeaveHeaderIcon('http-pre')"
i
con=
"caret-right"
class=
"click control-button"
/>
<div
class=
"control"
>
<font-awesome-icon
v-if=
"false"
icon=
"terminal"
class=
"control-button"
/>
<font-awesome-icon
icon=
"circle-down"
class=
"control-button click"
:style=
"
{ color: '#285f8c' }" />
<font-awesome-icon
id=
"x"
icon=
"circle-xmark"
class=
"control-button click"
:style=
"
{ color: '#8c2828' }" />
<
h
id=
"h"
@
click=
"() =>
{ $('#h').hide() }">1
</h
>
<
!--
<h
id=
"h"
@
click=
"() =>
{ $('#h').hide() }">1
</h>
--
>
</div>
</div>
</
template
>
<
script
lang=
"ts"
setup
>
import
$
from
'
jquery
'
const
mouseEnterHeaderIcon
=
(
id
:
string
)
=>
{
$
(
`#
${
id
}
`
).
addClass
(
'
mouse-focus
'
)
}
const
mouseLeaveHeaderIcon
=
(
id
:
string
)
=>
{
$
(
`#
${
id
}
`
).
removeClass
(
'
mouse-focus
'
)
}
</
script
>
<
style
scoped
>
...
...
@@ -35,6 +43,7 @@ import $ from 'jquery'
.mouse-focus
{
transform
:
scale
(
1.2
,
1.2
);
color
:
#d57e04
;
}
</
style
>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录