> For the complete documentation index, see [llms.txt](https://book.ferro.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.ferro.pro/dev/py_gui.md).

# py\_GUI

* [Windows](#windows)
* [QT](#qt)
  * [proxy](#proxy)
* [Apps](#apps)
  * [Browser](#browser)
    * [qutebrowser](#qutebrowser)
    * [admbrowser](#admbrowser)

## Windows

<https://pypi.org/project/auto-py-to-exe/>

```
pip install --upgrade PyQt5
pip install auto-py-to-exe
auto-py-to-exe        # GUI
auto-py-to-exe --help # cli
Win+R -> shell:startup
```

## QT

```
pip install --upgrade PyQt5
# or
pip install --upgrade PySide6 # Qt 6.0+
```

### proxy

<https://www.google.com/search?q=python+QNetworkProxy+code+sample>

```
# 1. Create a QNetworkProxy instance
proxy = QNetworkProxy()

# 2. Set the proxy type (e.g., Socks5Proxy, HttpProxy)
proxy.setType(QNetworkProxy.Socks5Proxy)

# 3. Set the proxy host and port
proxy.setHostName("localhost")  # Replace with your proxy server address
proxy.setPort(9050)             # Replace with your proxy server port
```

## Apps

### Browser

#### qutebrowser

Install: <https://github.com/qutebrowser/qutebrowser/blob/master/doc/install.asciidoc#manual-install\\>
Windows + tox + conda: <https://stackoverflow.com/questions/30555943/is-it-possible-to-use-tox-with-conda-based-python-installations>

Proxy Types: <https://github.com/qutebrowser/qutebrowser/blob/86fca3e99ee4836f5f591831eb93a09ffb8231d2/qutebrowser/utils/urlutils.py#L599>

#### admbrowser

<https://github.com/alandmoore/admbrowser>

```
HTTPS, FTP, SOCKS, or authenticated proxy is not currently supported
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.ferro.pro/dev/py_gui.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
