リンクを新しいタブで開く

わかりました。少々お待ちください

...
フィードバック
AI で生成されたコード。ご確認のうえ、慎重にご使用ください。 FAQ で詳細を確認。
  1. Python tkinter教程-01:创建窗口_tk创建一个全屏的窗口-CSDN博客

    • 创建窗口就用窗口名字 = tkinter.Tk(),更新窗口就用窗口名字.update(),但是tkinter封装了一个循环,不用自己写update,可以直接用窗口名字.mainloop()。 下面是一个范例代码:… さらに表示

    2 窗口标题

    这时,肯定会有人问怎么改标题?这是我们自己的程序,怎么能没有标题呢? 标题的英文是title,所以就是窗口名称.title("窗口名称") (注意:一定要加双引号哦~) 下面二话不说上代码(*^▽^*):

    CSDN博客
    3 窗口大小与位置

    为了以后,有没有想过,如果窗口里的东西太多了,怎么给它设置初始值大小,甚至是位置呢? 接下来就要讲的是geometry函数了。它不仅可以调整大小,还能调整位置。 geometry(“窗口宽度x窗口高度+X坐标+Y坐标”) (注意:一定要加双引号,X坐标和Y坐标选填) 比如: 我想要宽度为500,高度为500的窗口就要这样: 窗口名字.geometry("500x500") 我想要宽度为300,高度为600的窗口就要这样: 窗口名字.geometry("300x600") 如果要调整位置就要这样: (注意:X为0和Y为0不是在左上角,而是与左上角还个差10,因为窗口标题的高度为10,所以Y轴一直为0,X轴为-10) 例子:

    CSDN博客
    4 锁定窗口大小

    锁定窗口大小,也就是禁用左上角的放大按钮,这样用户就不可以随便放大和缩小窗口。 当然,可以锁定宽度,或者是高度,也可以都锁 锁定宽度: 窗口名字.resizable(False, True) 锁定高度: 窗口名字.resizable(True, False) 锁定全部: 窗口名字.resizable(False, False) 例子:

    CSDN博客
    5 窗口图标

    自己的程序,肯定要有个logo才行,不然这个羽毛笔太难看了 首先自己准备一个icon图标,没有的可以点击这里去iconfont注册账号下载图标,这里的图标是免费的(记得转换成ico格式,下载下来的还是png格式,记得转换为ico格式) 窗口名字.iconbitmap("文件名.ico") 例子:

    CSDN博客
  1. High-level GUI - OpenCV

    2 日前 · This is what the HighGUI module has been designed for. It provides easy interface to: Create and manipulate windows that can display images and "remember" their content (no …

  2. Custom window patterns - The Apache Software Foundation

    4 日前 · You can modify the assignWindows function to use data-driven gaps, then window incoming data into sessions. Access the assignWindows function through …

  3. Getting Started with 2D Games Using Arcade Library (Part 2): …

    2 日前 · Let’s Create the Game Screen In this chapter, we will create a game screen. We’ll start by... Tagged with python, beginners, gamedev, arcade.

  4. Python Tutorials – Real Python

    2 日前 · Learn Python online: Python tutorials for developers of all skill levels, Python books and courses, Python news, code examples, articles, and more.

  5. 【Python】自動化スクリプト実例集、面倒な作業を1行で終わら …

    1 日前 · はじめに 「この作業、毎日やるの面倒だな…」 そんなときこそPythonの出番。この記事では、実際に動作確認済みの 自動化スクリプト集 を紹介するよ。 1. ファイル整理(拡張子 …

  6. Windows - Neovim docs

    1 日前 · If you don't set this option, splitting a window will reduce the size of the current window and leave the other windows the same. When closing a window, the extra lines are given to the …

  7. Python Prefix Calculator App | The Hard-Core Coder

    4 日前 · In the last post we used the Python tkinter module (which is standard) to build a shell window for script-based calculator app. To do anything useful, the shell needs a back-end …

  8. python - Nuitka & PyQt6 specifying imports to reducing exe size ...

    4 日前 · I'm working on a project to develop a simple app, based on a Python script for data analysis, using PyQt6 to format the app, and using Nuitka to create an exe. (Yes, I've tried using …

  9. Create your own Python command-line app — PyMAPDL - PyAnsys

    4 日前 · This example shows how to create your own command-line app in Python that uses PyMAPDL to perform some simulations. This usage is quite convenient when automating …