Author: Allan Brooke
Posted: 2012-05-29 10:27:21 Link
I have been playing around with the Class Designer to try to produce a
replacement page for the Edit Page produced by the AppWizard.
All the 'page' class's on the select list produce the same
three tabbed form and the Properties window vanishes when the editing form
appears.
Should I get a different form for each Page Class?
Platform: GTK
Python Version: 2.7.3 on linux2
Dabo Version: Version 0.9.4; Revision ~7178
UI Version: 2.8.12.1 on wxGTK (gtk2)
Would I be better to switch to a windows XP enviroment?
I am prepared to try and use Ubuntu 12.04 and report any errors but I am
not sufficiently knowledgeable at present to try to help fix the errors.
Regards
Allan
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/CANjKA-=yh68EfYq6Tnt1-sG1eV=7gnugiwhD8=hp6JtgdFZ5Eg@mail.gmail.com
Author: Ed Leafe
Posted: 2012-05-29 10:33:18 Link
On May 29, 2012, at 10:27 AM, Allan Brooke wrote:
> I have been playing around with the Class Designer to try to produce a
> replacement page for the Edit Page produced by the AppWizard.
>
> All the 'page' class's on the select list produce the same
> three tabbed form and the Properties window vanishes when the editing form
> appears.
>
> Should I get a different form for each Page Class?
There are two separate concepts here: the paged control classes, which are the complete container + pages, and the page classes themselves. If you want to create a page class, be sure to select 'Page', and not 'PageFrame', 'PageList', etc.
-- Ed Leafe
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/2F937540-10CA-4502-8DC1-6416F32730E5@leafe.com
Author: Ed Leafe
Posted: 2012-05-29 12:09:25 Link
On May 29, 2012, at 10:33 AM, Ed Leafe wrote:
> There are two separate concepts here: the paged control classes, which are the complete container + pages, and the page classes themselves. If you want to create a page class, be sure to select 'Page', and not 'PageFrame', 'PageList', etc.
Good thing I tested this. Just found a bug in the link between the class names and their underlying classes in the code for the Class Designer. The fix has been posted to svn.
-- Ed Leafe
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/CFC62F2A-134D-4113-AE6B-0D48A9C96F06@leafe.com
Author: Allan Brooke
Posted: 2012-05-29 12:38:40 Link
Thanks Ed
I must have missed the Page at the lower end of the selection list.
On selecting Page I get a dRadioList
Tried again checked Page was selected again dRadioList.
Selected Media Control and got dPage with an Object Info form.
It seems to work OK
Thanks
On 29 May 2012 17:33, Ed Leafe <ed@leafe.com> wrote:
> On May 29, 2012, at 10:27 AM, Allan Brooke wrote:
>
> > I have been playing around with the Class Designer to try to produce a
> > replacement page for the Edit Page produced by the AppWizard.
> >
> > All the 'page' class's on the select list produce the same
> > three tabbed form and the Properties window vanishes when the editing
> form
> > appears.
> >
> > Should I get a different form for each Page Class?
>
> There are two separate concepts here: the paged control classes,
> which are the complete container + pages, and the page classes themselves.
> If you want to create a page class, be sure to select 'Page', and not
> 'PageFrame', 'PageList', etc.
>
>
>
> -- Ed Leafe
>
>
>
> _______________________________________________
> Post Messages to: Dabo-users@leafe.com
> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
> Searchable Archives: http://leafe.com/archives/search/dabo-users
> This message:
> http://leafe.com/archives/byMID/2F937540-10CA-4502-8DC1-6416F32730E5@leafe.com
>
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/CANjKA-kwhre0WWs4wKNCaDS_UCa3O5y0TTOtHckniBEJwr8ePg@mail.gmail.com
Author: Ed Leafe
Posted: 2012-05-29 12:42:44 Link
On May 29, 2012, at 12:38 PM, Allan Brooke wrote:
> On selecting Page I get a dRadioList
> Tried again checked Page was selected again dRadioList.
>
> Selected Media Control and got dPage with an Object Info form.
Yep, that's the bug I just fixed.
-- Ed Leafe
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/57A79B1F-7027-4F2C-91E7-8FF359815AEE@leafe.com
Author: Allan Brooke
Posted: 2012-05-29 13:01:15 Link
Well done Ed.
You fix em up before I find um.
Did you also find?
All the 'page' class's on the select list produce the same
three tabbed form *and the Properties window vanishes when the editing form
appears.*
*
*
Thanks again
Allan
On 29 May 2012 19:42, Ed Leafe <ed@leafe.com> wrote:
> On May 29, 2012, at 12:38 PM, Allan Brooke wrote:
>
> > On selecting Page I get a dRadioList
> > Tried again checked Page was selected again dRadioList.
> >
> > Selected Media Control and got dPage with an Object Info form.
>
> Yep, that's the bug I just fixed.
>
>
> -- Ed Leafe
>
>
>
> _______________________________________________
> Post Messages to: Dabo-users@leafe.com
> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
> Searchable Archives: http://leafe.com/archives/search/dabo-users
> This message:
> http://leafe.com/archives/byMID/57A79B1F-7027-4F2C-91E7-8FF359815AEE@leafe.com
>
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/CANjKA-nT2nB-9EREsq+FZTWyWHHoEm1VTNesivfhzO5VV-o90A@mail.gmail.com
Author: Ed Leafe
Posted: 2012-05-29 13:33:32 Link
On May 29, 2012, at 1:01 PM, Allan Brooke wrote:
> Did you also find?
>
> All the 'page' class's on the select list produce the same
> three tabbed form *and the Properties window vanishes when the editing form
> appears.*
Nope, I don't see any of that. Here's what I see:
http://screencast.com/t/1hyQ7wYB3A
-- Ed Leafe
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/E5611026-906D-46D5-9D12-C30454C19A1F@leafe.com
Author: Allan Brooke
Posted: 2012-05-29 15:19:11 Link
I have similar but no Object Info Form
On 29 May 2012 20:33, Ed Leafe <ed@leafe.com> wrote:
> On May 29, 2012, at 1:01 PM, Allan Brooke wrote:
>
> > Did you also find?
> >
> > All the 'page' class's on the select list produce the same
> > three tabbed form *and the Properties window vanishes when the editing
> form
> > appears.*
>
> Nope, I don't see any of that. Here's what I see:
>
> http://screencast.com/t/1hyQ7wYB3A
>
>
> -- Ed Leafe
>
>
>
> _______________________________________________
> Post Messages to: Dabo-users@leafe.com
> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
> Searchable Archives: http://leafe.com/archives/search/dabo-users
> This message:
> http://leafe.com/archives/byMID/E5611026-906D-46D5-9D12-C30454C19A1F@leafe.com
>
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/CANjKA-kfVh2SK1rqq2w3qV9q9hF=BL3gRMSwaapKGDbLa0HKzA@mail.gmail.com
Author: Ed Leafe
Posted: 2012-05-29 15:27:16 Link
On May 29, 2012, at 3:19 PM, Allan Brooke wrote:
> I have similar but no Object Info Form
Try this: from your designer form, type Ctrl-D to open the Command Window. Now type the following and let me know what happens:
pf = self.Application.PemForm
print "PemForm:", pf, pf.Visible, pf.Position
pf.Position = (0, 0)
pf.show()
Let me know what gets printed out, and if the prop sheet is visible afterwards.
-- Ed Leafe
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/E6733CC2-3474-4833-8F98-E7B9818CC206@leafe.com
Author: Allan Brooke
Posted: 2012-05-30 08:47:43 Link
Start ClassDesigner from Terminal Window
Three windows appear
Object Info
Editor Code
Page Control Setting
Object Info & Editor disappear
I click OK on Page Control Setting Window
Dabo Class Designer dPageStyled
Object Info
Editor Code
+ Other window too quick to see
Appear
Object Info
Editor Code
+ Other window
Disappear
Only Terminal & Dabo Class Designer dPageStyled
Remain
Ctrl-D
Shell Appears
pf = self.Application.PemForm
print "PemForm:", pf, pf.Visible, pf.Position
Reply:-
PemForm: <PemForm (baseclass dabo.ui.dForm, id:-222)> True (1227, 55)
pf.Position = (0, 0)
pf.show()
Nothing
Can Open Object Info from Menu
& Coding Editor
I then Saved File to see if I could continue.
On using saved class got following error:-
Traceback (most recent call last):
File "/home/allan/dabo/ide/ClassDesigner.py", line 4458, in <module>
clsDes = ClassDesigner(f)
File "/home/allan/dabo/ide/ClassDesigner.py", line 259, in __init__
frm = self.onNewDesign(None)
File "/home/allan/dabo/ide/ClassDesigner.py", line 2049, in onNewDesign
return self.openClass(dlg.fileToOpen)
File "/home/allan/dabo/ide/ClassDesigner.py", line 754, in openClass
obj = self.recreateChildren(frm.mainPanel, kids, None, False)
File "/home/allan/dabo/ide/ClassDesigner.py", line 1262, in
recreateChildren
ret = self._recreateControl()
File "/home/allan/dabo/ide/ClassDesigner.py", line 990, in
_recreateControl
skipUpdate=True, attProperties=atts)
File "/home/allan/dabo/ide/ClassDesigner.py", line 2959, in addNewControl
obj = mixedClass(parent, properties=props, attProperties=attProperties)
File "/home/allan/dabo/ide/ClassDesigner.py", line 3065, in __init__
apply(base.__init__,(self,) + args, kwargs)
File "/home/allan/dabo/dabo/ui/uiwx/dPageFrame.py", line 290, in __init__
attProperties=attProperties, *args, **kwargs)
File "/home/allan/dabo/dabo/ui/uiwx/dPageFrameMixin.py", line 25, in
__init__
attProperties=attProperties, *args, **kwargs)
File "/home/allan/dabo/dabo/ui/uiwx/dPemMixin.py", line 198, in __init__
self._setNameAndProperties(properties, **kwargs)
File "/home/allan/dabo/dabo/ui/uiwx/dPemMixin.py", line 236, in
_setNameAndProperties
self._setProperties(properties)
File "/home/allan/dabo/dabo/ui/uiwx/dPemMixin.py", line 249, in
_setProperties
self.setProperties(properties)
File "/home/allan/dabo/dabo/lib/propertyHelperMixin.py", line 217, in
setProperties
_setProps(propDict)
File "/home/allan/dabo/dabo/lib/propertyHelperMixin.py", line 206, in
_setProps
setter(self, _propDict[prop])
File "/home/allan/dabo/dabo/ui/uiwx/dPageFrame.py", line 422, in
_setTabAreaColor
raise ValueError(_("'%s' can not be translated into a color" % val))
ValueError: 'None' can not be translated into a color
I was able to create a Page using ClassDesigner and use same in place of
Page created by AppWizard
I replaced AppWizard Page in FrmClients.py
from PagEditClients import PagEditClients
with
PagEditClients = "MyPage.cdxml"
Is this correct way?
Is it possible to see & save created python from :-
MyPage.cdxmlf
as startup seems very long with this file in the program.
Even loading this form takes a while and Small Sizzer Window stays open for
quite awhile and Object Info & Code Editor window both grey-out for a
while.
Hope I have not asked too much at once.
Please say if I am doing something wrong.
Thanks for all your help so far.
Allan
On 29 May 2012 22:27, Ed Leafe <ed@leafe.com> wrote:
> On May 29, 2012, at 3:19 PM, Allan Brooke wrote:
>
> > I have similar but no Object Info Form
>
> Try this: from your designer form, type Ctrl-D to open the Command
> Window. Now type the following and let me know what happens:
>
> pf = self.Application.PemForm
> print "PemForm:", pf, pf.Visible, pf.Position
> pf.Position = (0, 0)
> pf.show()
>
> Let me know what gets printed out, and if the prop sheet is visible
> afterwards.
>
>
> -- Ed Leafe
>
>
>
> _______________________________________________
> Post Messages to: Dabo-users@leafe.com
> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
> Searchable Archives: http://leafe.com/archives/search/dabo-users
> This message:
> http://leafe.com/archives/byMID/E6733CC2-3474-4833-8F98-E7B9818CC206@leafe.com
>
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/CANjKA-nbEqBSJDVqc0=qNuPJrE9zvthgLH5W8ROqJp=BLQHNZQ@mail.gmail.com