简体   繁体   English

Tkinter 模板

[英]Tkinter templating

I there a website or application that lets me design my interface for tkinter before I actually code it?我有一个网站或应用程序可以让我在实际编码之前为 tkinter 设计我的界面吗? I want a way to be able to find out what looks good without having to mess with my code every time I want to move a button.我想要一种能够找出看起来不错的方法,而不必每次我想移动按钮时都弄乱我的代码。

There is nothing that lets you specifically design for tkinter, there is no graphical design tool for it and it doesn't support CSS.没有什么可以让您专门为 tkinter 设计,没有图形设计工具,也不支持 CSS。

Consider following an interface first design pattern, designing your application in a vector drawing tool like adobe illustrator, affinity designer or a more focused UI design tool like sketch or Akira .考虑遵循界面优先设计模式,在矢量绘图工具(如 adobe illustrator、affinity Designer 或更专注的 UI 设计工具(如sketchAkira )中设计您的应用程序)。

"Convert" that design into your interface and then build your application around it.将该设计“转换”到您的界面中,然后围绕它构建您的应用程序。

If you have a solid understanding of how your app will function and how it will be used, the interface shouldn't need to change during development of the functionality, remember that you can use mock data to "fill" the app with dummy content if needed.如果您对您的应用程序将如何 function 以及如何使用有充分的了解,则在功能开发过程中不需要更改界面,请记住,您可以使用模拟数据来“填充”应用程序的虚拟内容,如果需要。

If this approach is unsuitable then maybe you should consider using something like pywebview that uses html and so can benefit from WYSIWYG or straight forward browser testing before being used in your interface.如果这种方法不合适,那么也许您应该考虑使用类似pywebview的东西,它使用 html,因此可以在用于您的界面之前从 WYSIWYG 或直接的浏览器测试中受益。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM