Giter Site home page Giter Site logo

honghaier-game / pyme Goto Github PK

View Code? Open in Web Editor NEW
867.0 867.0 159.0 1.84 GB

PyMe is a tool software to develop the Python User Interface for Python programmer.

License: Apache License 2.0

Python 2.50% XSLT 11.22% Roff 0.01% Lua 0.01% CSS 0.02% Smarty 0.62% Tcl 85.47% JavaScript 0.14%
drag drag-and-drop drag-and-drop-programming dragdrop fast gui python python-gui pythongui tkinter tkinter-app tkinter-game tkinter-graphic-interface tkinter-gui tkinter-library tkinter-python tkinter-widgets

pyme's People

Contributors

honghaier-game avatar retsyo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyme's Issues

bug吗?(显示拒绝访问。)

使用最新版1.6.7时,创建了对话框模板,然后直接点击右上角的运行,会跳转到代码界面,并且下面的输出框中有红色字体“拒绝访问”。
点击输出框上面的小三角形运行按钮可以运行,但是如果点击红色小正方形终结按钮后,这些小按钮就莫名其妙地失效了,点了没反应。
如果更改了代码或界面什么的,点击那个小三角形按钮时运行的是修改前的界面和代码。
在使用1.6.2时没有出现这种情况。

如果不是bug,是我的问题的话,请告诉我如何解决,谢谢!
wd01-25-32-927

No 'visible' attribute ?

Trying to make button invisible using Fun.SetTKAttrib(uiName,'Button_39','visible','Hidden'), but I can not get what I want.

请问打包一直是1%怎么回事?

Start preparing the packaging environment...一直为这个
我主要问题是当时那个NDK的文件下没有视频里面说的bin文件,不知道up所指的是哪个目录。

bug 和建议

以 文件名 project2.py project2_cmd.py 为例。

  1. 目前代码编辑器自动提示加载一些类库有各种不适应或加载不了(比如 opencv ),换行不显示等,一些奇奇怪怪的问题,其他编辑器也有,原因未知,偶尔会跟其他编辑器混这使用,会解决这个问题,外部程序改变文件时候不能自动加载更新, 如,project2_cmd.py 用VScode 改变代码了, 用 TKinterDesigner 运行程序,会发现代码会还原。 反之,用 TKinterDesigner 改变代码, VScode 能自动更新。
  2. project2.py 默认是图形设计模式,不知道怎么进入代码模式, 但偶尔又自动跳到代码模式, 最好有明确的入口和转换菜单(比如右击文件名来选择)。
  3. 要打开某个文件所在的目录,一般IDE 都有这个功能, 比如, 右击 project2_cmd.py ,选择单击 ”打开文件所在的目录”。
  4. 设置python 虚拟环境入口, 一些默认的环境由于历史过于复杂,根本就无法打包,有些包根本删都删不掉,通常的做法是用anaconda 设置新的虚拟环境来建立新项目和打包。 这里没有设置使用虚拟环境入口。

一些Bug、一些建议和一些问题

Bugs

  • 编码问题
html_file = open(openPath, 'r', encoding="utf-8")
html_data = html_file.read()
html_file.close()
print(html_data)

运行Print时,提示gbk编码错误
运行无Print时,不提示gbk编码错误

  • 使用Pycharm格式化代码,变成4个缩进之后,视图就加载不了
  • 无法新建任意文件,只能新建.py文件
  • Fun.py中自定义的函数无法保存

建议

#插入控件的文本(Label、Button、Entry、Text)。
def InsertText(uiName,elementName,textValue):
    global G_UIElementArray
    global G_UIElementVariableArray
    showtext = str("%s"%textValue)
    if uiName in G_UIElementArray:
        if elementName in G_UIElementArray[uiName]:
            if elementName.find('Text_') >= 0:
                G_UIElementArray[uiName][elementName].insert(tkinter.END,showtext)
            else:
                G_UIElementArray[uiName][elementName].configure(text=showtext)

问题

如何在任意文件使用界面的任意一个控件?

安装说明

作者好,
感谢这款窗口开发工具,想要试一下。文档没有安装说明啊,请问适配哪个版本python?安装配置怎么弄?

控件丢失

画好的控件布局和写好的事件响应,保存后直接丢失了!!!
Waste of Time !!!!

对于多个选中对象不可以批量设置样式

首先非常感谢作者开发了这么棒的软件,包括Fun的封装。

1.对于多个对象不可设置统一样式,比如大小,字体,需要挨个设置。
2.元素不可以对齐,设置等高,等宽等操作。
3.在编辑代码的时候,如果选中的是界面文件,会讲cmd文件保存到界面文件,导致界面丢失。

无法运行?

设置了anaconda的pathon解释器的路径然后点击运行无反应

保存后重新打开,部分组件丢失

版本号:v1.5.3。
触发复现步骤:
1、新建 空界面。
2、拖出一个LabelIframe。
3、修改 LabelIframe 的名称为任意值。
4、拖出一个 Label 至 LabelIframe 下。
5、修改 Label 的 x 为任意值。
6、执行保存,且此时弹窗 保存成功。
7、退出到主界面。
8、选择打开项目,打开刚保存的项目,此时只有菜单栏,其他界面均无样式。
9、退出到主界面,再次打开刚保存的项目,会发现 LabelIframe 下的组件消失(若之前添加了菜单,也会消失)。

English version of the README.md file

Hello there, everybody who is hearing and seeing this issue,
I think it is the time to create an English version of the file README.md in the main branch, if it is not possible for you to do so, Simply give me a copy of the README.md file, so I can pass it through the translator (As I have less than 0 knowledge in Chinese language) and then I will make a pull request, so you should accept it then.
Kindly,
-Insertx2k Dev

A translated version of what I want in this issue to Simplified Chinese using Google Translator :

您好,每个听到和看到此问题的人,
我认为是时候在main分支中创建文件README.md的英文版本了,如果您不能这样做,请给我一份README.md文件的副本。 ,这样我就可以通过翻译程序了(因为我的中文知识少于0),然后我将发出请求请求,因此您应该接受它。
亲切地,
-Insertx2k Dev

运行过程中缩放窗口但组件不跟随缩放

如题,在qt中可以通过 Layout 嵌套的方式实现灵活缩放,但在此项目的demo和文档中也无法找到类似的解决方案。
但我注意到软件本身是可以支持拖曳缩放的,如果可能的话希望能早日实装此项功能。

python3 为什么会报错SyntaxError: Non-ASCII character '\xe6' in file

错误信息输出窗口.
Traceback (most recent call last):
File "Project4.py", line 4, in
import Project4_cmd
File "D:\Download\IDM\Compressed\Compressed\TKinterDesigner-v1.6.2-win64\Project4\Project4_cmd.py", line 9, in
import Fun
File "D:\Download\IDM\Compressed\Compressed\TKinterDesigner-v1.6.2-win64\Project4\Fun.py", line 1
SyntaxError: Non-ASCII character '\xe6' in file D:\Download\IDM\Compressed\Compressed\TKinterDesigner-v1.6.2-win64\Project4\Fun.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

bug 报告,注释文字会消失。按钮无法删除

新编辑代码后 注释文字会消失。
版本 1.6.7 win64 ,
新建按钮2 个button1 ,button2,-> 右击按钮button1 -> 选择event function->选择Button-1-> 单击 edit Funtion, 编辑代码写注释
右击按钮button2 -> 选择event function->选择Button-1-> 单击 edit Funtion, 会发现注释的部分不见了。

右击按钮 delete , 发现没反应

python安装路径问题

作者您好,
我的python安装路径在 Windows D:\Program Files(x86)路径底下。 TKinterDesigner可以启动,但是编辑完点击“Run”时会报错,说“D:\Program”不是内部命令也不是外部命令, 貌似不支持带空格的路径,这个跟Windows环境不适配啊。
另外函数说明里说明了对TKinter的封装部分,但是好像不太全名。比如我添加一个按钮,点击退出。这个按钮的事件函数怎么写?
uiName.root.destroy() ? 还是啥? 这些在文档里没有说啊。

打包apk失败

一直打包失败是啥原因呀,变量都配置好了

Can I change global theme

Can I change global theme of software in V1.6.8 in windows x64 due to the current theme is dark which I need to change to light. Thanks.

Request update

可以更新一下 release 吗? 百度网盘那里更到 1.3.7.3

Source code? Binaries in the repo?

Where do I find the source code?

GitHub is for managing Git repositories, which is to keep track of the source code.

The Git repo is not intended to keep the binaries. You can put them into the releases, or elsewhere. The Git repo is just for the source code.

文件经常丢失

不知道什么原因,界面都画完了,新建一个界面,左侧文件切换了一下,主界面的控件就都丢失了,操作前执行了保存操作,回退也没有了。非常崩溃 反复出现多次类似情况。

设置label 图像 不显示问题

  简单设置一个界面,一个按钮一个Label

#coding=utf-8
#import libs
import sys
import Project6_cmd
import Project6_sty
import Fun
import os
import tkinter
from tkinter import *
import tkinter.ttk
import tkinter.font
#Add your Varial Here: (Keep This Line of comments)
#Define UI Class
class Project6:
def init(self,root,isTKroot = True):
uiName = self.class.name
Fun.Register(uiName,'UIClass',self)
self.root = root
Fun.Register(uiName,'root',root)
style = Project6_sty.SetupStyle()
if isTKroot == True:
root.title("Form1")
Fun.CenterDlg(uiName,root,842,625)
root['background'] = '#efefef'
Form_1= tkinter.Canvas(root,width = 10,height = 4)
Form_1.place(x = 0,y = 0,width = 842,height = 625)
Form_1.configure(bg = "#efefef")
Form_1.configure(highlightthickness = 0)
Fun.Register(uiName,'Form_1',Form_1)
#Create the elements of root
Label_2 = tkinter.Label(Form_1,text="Label",width = 10,height = 4)
Fun.Register(uiName,'Label_2',Label_2)
Fun.SetControlPlace(uiName,'Label_2',47,29,535,416)
Label_2.configure(relief = "flat")
Button_3 = tkinter.Button(Form_1,text="Button",width = 10,height = 4)
Fun.Register(uiName,'Button_3',Button_3)
Fun.SetControlPlace(uiName,'Button_3',637,83,100,28)
Button_3.bind("",Fun.EventFunction_Adaptor(Project6_cmd.Button_3_onButton1,uiName=uiName,widgetName="Button_3"))
#Inital all element's Data
Fun.InitElementData(uiName)
#Add Some Logic Code Here: (Keep This Line of comments)
#Create the root of Kinter
if name == 'main':
root = tkinter.Tk()
MyDlg = Project6(root)
root.mainloop()

设置按钮事件,设置label 图像
#coding=utf-8
import sys
import os
from os.path import abspath, dirname
sys.path.append(abspath(dirname(file)))
import tkinter
import tkinter.filedialog
from tkinter import *
import Fun
ElementBGArray={}
ElementBGArray_Resize={}
ElementBGArray_IM={}

def Button_3_onButton1(event,uiName,widgetName):
Fun.SetImage(uiName,'Label_2',"2.png")

结果 ,label 图像没显示。

Label 怎么设置图像?

Update doesn't work

Windows 10 in Russian
C:\GUIPy\PyMe\PyMe

The first mistake is that the program offers a version that is smaller than the one running.
https://imgbox.com/zXyn5YLm

The second error is that after I download the update from the interface, close the program and run the update utility, nothing happens. I left it on all night. I tried this also with the version posted in the releases before (then I deleted the release folder and downloaded the latest available 2024 version).
https://imgbox.com/Xv6fH9tt

关闭提示

FUN 里面有没有一个关闭窗口提示? 如何实现?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.