WYSIWYG wxPython“IDE”....? [英] WYSIWYG wxPython "IDE"....?

查看:85
本文介绍了WYSIWYG wxPython“IDE”....?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写我的第二个大型wxPython程序,在问题发生后我发现代码中的第一个'布局',我想看一下使用

''WYSIWYG''IDE,就像VisualStudio为MFC做的那样。


我已经尝试了一些我找到的,wxGlade可能是最好的,虽然

似乎不是100%WYSIWYG(就像预览中的小部件一样

与最终程序不太一样),wxDesigner有一个可怕的GUI用于GUI

设计师!当我开始一个新的

项目时,VisualWX给了我''现在是什么?''的感觉.....


我发现sizer布局的事情是那些拿着这些程序的东西是,还有另外一个wxWidgets布局系统,所以我可以随时随地拖动我想要的小玩意儿b $ b小部件窗口,更像Qt或MFC?


我想在它下面放一个带有几个按钮的TextCtrl

而不必创建两个boxsizers或者是一个网格化器!


我想创建类似主XMMS(或Winamp)窗口的东西:

http://xmms.org/files/Skins/images/winamp_x_xmms.png


但是这将是一个3向垂直分级器,一个双向水平和一个

双向垂直,至少只对主(左上)窗口。

I''m writing my 2nd large wxPython program, and after the problems I
found doing the first''s layout in code, I''d like to look at using a
''WYSIWYG'' IDE, like VisualStudio does for MFC.

I''ve tried a few that I found, wxGlade is probably the best, although
it seems to be not 100% WYSIWYG (like the widgets in the preview are
not much like the final program), wxDesigner has a horrid GUI for a GUI
designer! VisualWX gave me the ''now what?'' feeling when I started a new
project.....

I find the sizer layout thing is what''s holding these programs back, is
there another wxWidgets layout system, so that I could just drag''n''drop
widgets wherever I want in a window, more like Qt or MFC?

I''d like to just put a TextCtrl with a few buttons underneath it
without having to create two boxsizers or a gridsizer!

I''d like to create something like the main XMMS (or Winamp) window:

http://xmms.org/files/Skins/images/winamp_x_xmms.png

But that would be a 3-way vertical sizer, a 2-way horizontal and a
2-way vertical at least just for the main (top left) window.

推荐答案

是的你可以使用bsolute定位。

你不需要sizer(但它们非常好)

大多数小部件都有构造函数中的pos关键字。只需使用

吧。


MEFarmer

Yes you can use absolute positioning.
You do not need sizers ( but they are very nice )
Most all the widgets have a pos keyword in there constructor. Just use
them.

M.E.Farmer


你试过Boa Constructor吗? ?

http://boa-constructor.sourceforge.net/

Simon John写道:
Have you tried Boa Constructor ?

http://boa-constructor.sourceforge.net/
Simon John wrote:
我正在编写我的第二个大型wxPython程序,并且在我发现第一个问题后发现了问题代码中的布局,我想看看使用一个
''WYSIWYG''IDE,就像VisualStudio为MFC做的那样。

我尝试了一些我发现的,wxGlade可能是最好的,虽然它似乎不是100%WYSIWYG(就像预览中的小部件不像最终程序那样),wxDesigner有一个可怕的GUI用于GUI 项目时,VisualWX给了我''现在是什么?''的感觉.....

我发现sizer布局的东西就是把这些程序拿回来,是否还有另一个wxWidgets布局系统,这样我就可以在窗口中随意拖动窗口,更像Qt或MFC?

我想在它下面放一个带有几个按钮的TextCtrl
,而不必创建两个boxsizer或一个gridsizer!

我想创建类似主XMMS的东西(或Winamp)窗口:

http: //xmms.org/files/Skins/images/winamp_x_xmms.png

但是这将是一个3向垂直分级器,一个双向水平和一个
2 - 垂直至少只为主(左上)窗口。
I''m writing my 2nd large wxPython program, and after the problems I
found doing the first''s layout in code, I''d like to look at using a
''WYSIWYG'' IDE, like VisualStudio does for MFC.

I''ve tried a few that I found, wxGlade is probably the best, although
it seems to be not 100% WYSIWYG (like the widgets in the preview are
not much like the final program), wxDesigner has a horrid GUI for a GUI
designer! VisualWX gave me the ''now what?'' feeling when I started a new
project.....

I find the sizer layout thing is what''s holding these programs back, is
there another wxWidgets layout system, so that I could just drag''n''drop
widgets wherever I want in a window, more like Qt or MFC?

I''d like to just put a TextCtrl with a few buttons underneath it
without having to create two boxsizers or a gridsizer!

I''d like to create something like the main XMMS (or Winamp) window:

http://xmms.org/files/Skins/images/winamp_x_xmms.png

But that would be a 3-way vertical sizer, a 2-way horizontal and a
2-way vertical at least just for the main (top left) window.



Tim Hoffman写道:
Tim Hoffman wrote:
你试过Boa吗?构造函数?

http://boa-constructor.sourceforge.net/
Have you tried Boa Constructor ?

http://boa-constructor.sourceforge.net/




是的,我也从未对它印象深刻。当前版本

似乎无法与wxPython 2.5.3.1一起使用....


我猜有没有GUI构建器做我想要的,回到

手动的做事方式,我想,除非我在这个项目中使用Qt

也许,并保留给自己(由于愚蠢的Qt许可)。



Yeah, I was never very impressed with it either. The current version
doesn''t seem to work with wxPython 2.5.3.1 though....

I guess there isn''t a GUI builder that does what I want, back to the
manual way of doing things I guess, unless I use Qt for this project
maybe, and keep it to myself (due to the stupid Qt licensing).


这篇关于WYSIWYG wxPython“IDE”....?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆