
José Núñez
Articles
-
Jan 15, 2024 |
linuxeden.com | Jose Nunez |José Núñez
Python 在 Linux 上有像 TkInter 这样的优秀 GUI(图形用户界面)开发库,但如果你不能运行图形应用程序怎么办? 文本终端,并非只在 Linux 上有,而且 BSD 和其它的出色的类 Unix 操作系统上也有。如果你的代码是用 Python 编写的,你应该使用 Textual 来帮助你编写 TUI(文本用户界面)。在这个快速介绍中,我将向你展示两个你可以用 Textual 做的示例,并且介绍它未来可能的应用方向。 所以 Textual 是什么? Textual 是一个为 Python 构建的快速应用程序开发框架,由 Textualize.io 构建。它可以让你用简单的 Python API 构建复杂的用户界面,并运行在终端或网络浏览器上! 你需要的跟进这个教程的工具 你需要有以下条件: 具备基础的编程经验,最好熟练使用 Python。 理解基础的面向对象概念,比如类和继承。 一台安装了 Linux 与 Python 3.9+ 的机器 一款好的编辑器(Vim 或者 PyCharm 是不错的选择)...
-
Jan 14, 2024 |
linux.cn | Selection List |Import Asyncio |Jose Nunez |José Núñez
Python 在 Linux 上有像 TkInter 这样的优秀 GUI(图形用户界面)开发库,但如果你不能运行图形应用程序怎么办? 文本终端,并非只在 Linux 上有,而且 BSD 和其它的出色的类 Unix 操作系统上也有。如果你的代码是用 Python 编写的,你应该使用 Textual 来帮助你编写 TUI(文本用户界面)。在这个快速介绍中,我将向你展示两个你可以用 Textual 做的示例,并且介绍它未来可能的应用方向。 所以 Textual 是什么? Textual 是一个为 Python 构建的快速应用程序开发框架,由 Textualize.io 构建。它可以让你用简单的 Python API 构建复杂的用户界面,并运行在终端或网络浏览器上! 你需要的跟进这个教程的工具 你需要有以下条件: 具备基础的编程经验,最好熟练使用 Python。 理解基础的面向对象概念,比如类和继承。 一台安装了 Linux 与 Python 3.9+ 的机器 一款好的编辑器(Vim 或者 PyCharm 是不错的选择)...
-
Jan 10, 2024 |
lxer.com | Jose Nunez |José Núñez |Import Asyncio |Selection List
Python on Linux has nice GUI (Graphic User Interface) development libraries like TkInter, but what if you cannot run graphical applications? Text terminals, are available on not just Linux but BSD and other great Unix-like operating systems. If you write code in Python, you should be using Textual to help you write TUI (Text User Interfaces). In this quick introduction, I will show you two examples of what you can do with Textual and where you can go after that. So what is Textual?
-
Nov 17, 2023 |
linux.cn | Jose Nunez |José Núñez
许多人每日都在使用终端,因此,文字用户界面Text User Interface(TUI)逐渐显示出其价值。它能减少用户输入命令时的误差,让终端操作更高效,提高生产力。 以我的个人使用情况为例:我每日会通过家用电脑远程连接到我使用 Linux 系统的实体 PC。所有的远程网络连接都通过私有 VPN 加密保护。然而,当我需要频繁重复输入命令进行连接时,这种经历实在令人烦躁。 于是,我创建了下面这个 Bash 函数,从而有所改进: export REMOTE_RDP_USER="myremoteuser" function remote_machine() { /usr/bin/xfreerdp /cert-ignore /sound:sys:alsa /f /u:$REMOTE_RDP_USER /v:$1 /p:$2 } 但后来,我发现自己还是频繁地执行下面这条命令(在一行中): remote_pass=(/bin/cat/.mypassfile) remote_machine $remote_machine $remote_pass...
-
Nov 15, 2023 |
lxer.com | Jose Nunez |José Núñez
Many use the terminal on a daily basis. A Text User Interface (TUI) is a tool that will minimize user errors and allow you to become more productive with the terminal interface. Let me give you an example: I connect on a daily basics from my home computer into my Physical PC, using Linux. All remote networking is protected using a private VPN. After a while it was irritating to be repeating the same commands over and over when connecting.
Try JournoFinder For Free
Search and contact over 1M+ journalist profiles, browse 100M+ articles, and unlock powerful PR tools.
Start Your 7-Day Free Trial →