Gitea 桌面客户端:pywebview 封装自托管仓库
This commit is contained in:
commit
36155b5ae9
4 files changed
+125
No files matched your search
@@ -0,0 +1,26 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""Gitea 桌面客户端:把 https://git.hanfuit.com 包成独立窗口应用。"""
|
||||
import webview
|
||||
|
||||
GITEA_URL = "https://git.hanfuit.com"
|
||||
|
||||
WINDOW_TITLE = "灵宝仙尊代码仓库"
|
||||
WIDTH = 1280
|
||||
HEIGHT = 800
|
||||
|
||||
|
||||
def main():
|
||||
webview.create_window(
|
||||
title=WINDOW_TITLE,
|
||||
url=GITEA_URL,
|
||||
width=WIDTH,
|
||||
height=HEIGHT,
|
||||
min_size=(900, 600),
|
||||
resizable=True,
|
||||
fullscreen=False,
|
||||
)
|
||||
webview.start()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in new issue
Block a user