RIDE 0.30: Tabs within Plugin

5 views
Skip to first unread message

Thomas Robinson

unread,
Dec 14, 2010, 10:39:10 PM12/14/10
to robotframe...@googlegroups.com
Hello,

Upon upgrading to RIDE 0.30 I am having a problem with a plugin: When I load a test suite with the plugin open (having automatically shown itself as a new tab in RIDE's Notebook), I get weird rendering of the Edit tab in RIDE 0.30. The problem only seems to affect Windows XP. Here is a link to a picture of the problem [1]

I did not have this problem using RIDE 0.30 on Linux or Windows 7, and I never experienced this problem using RIDE 0.29.2 on any platform.

I went through the code commenting out each GUI element and found the problem only appeared when ever you make a call to the AddPage() method of a wx.Notebook.

Here is a link to a simplified plugin which demonstrates the problem [2]

I have found two ways of avoiding this issue but neither is particularly ideal (I want the plugin to open automatically):
  1) Manually opening the plugin using the menu instead of automatically loading it
  2) Disabling and then reenabling the Edit plugin from the Manage Plugins manager

Would anyone be able to help with this issue? Is it a problem with my code? or is it a RIDE problem? or is it a wxpython problem?

Any help would be appreciated.

Cheers
Thomas


Janne Härkönen

unread,
Dec 17, 2010, 12:23:55 AM12/17/10
to robin...@gmail.com, robotframe...@googlegroups.com
On Wed, Dec 15, 2010 at 5:39 AM, Thomas Robinson <robin...@gmail.com> wrote:
> Hello,
> Upon upgrading to RIDE 0.30 I am having a problem with a plugin: When I load
> a test suite with the plugin open (having automatically shown itself as a
> new tab in RIDE's Notebook), I get weird rendering of the Edit tab in RIDE
> 0.30. The problem only seems to affect Windows XP. Here is a link to a
> picture of the problem [1]
> I did not have this problem using RIDE 0.30 on Linux or Windows 7, and I
> never experienced this problem using RIDE 0.29.2 on any platform.
> I went through the code commenting out each GUI element and found the
> problem only appeared when ever you make a call to the AddPage() method of a
> wx.Notebook.

Windows XP seems to behave a bit differently in regards of automatic
redrawing of components on some UI events. I made some changes to the
way the editing views are rendered in RIDE 0.30, so this may very well
be a side-effect of those.

> Here is a link to a simplified plugin which demonstrates the problem [2]
> I have found two ways of avoiding this issue but neither is particularly
> ideal (I want the plugin to open automatically):
>   1) Manually opening the plugin using the menu instead of automatically
> loading it
>   2) Disabling and then reenabling the Edit plugin from the Manage Plugins
> manager

Thanks for this debug information!

> Would anyone be able to help with this issue? Is it a problem with my code?
> or is it a RIDE problem? or is it a wxpython problem?
> Any help would be appreciated.

I'll hopefully have time to take a thorough look on this today, and I
'll get back to you with whatever comes up.

thanks,
__j

--
Janne Härkönen    | Software Craftsman @ Reaktor
http://reaktor.fi | http://twitter.com/#!/janneharkonen

Janne Härkönen

unread,
Dec 17, 2010, 7:46:20 AM12/17/10
to robin...@gmail.com, robotframe...@googlegroups.com

There was an issue with RIDE that caused the initial page, WelcomePage
to be rendered twice in some situations. This has been fixed in
current HEAD of RIDE repository and I tested this on Windows XP, seems
to be ok now.

thanks,

Thomas Robinson

unread,
Dec 17, 2010, 1:44:37 PM12/17/10
to robotframework-devel

Thanks a lot Janne!

I'm glad you were able to fix the problem and I'm happy to have
helped.

I'm looking forward to the next release of RIDE :-)

Thomas


On Dec 18, 1:46 am, Janne Härkönen <janne.t.harko...@gmail.com> wrote:
> On Fri, Dec 17, 2010 at 7:23 AM, Janne Härkönen
>
> <janne.t.harko...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages