Re: [dabo-users] listbox pair

2008-12-03 Thread Uwe Grauer
Ed Leafe wrote: On Dec 2, 2008, at 5:59 PM, johnf wrote: Sure! But a follow up question. How does one use a cdxml file as class to be used in a hand coded form. For example: It's not that hard: from dabo.lib.DesignerXmlConverter import DesignerXmlConverter conv =

Re: [dabo-users] Non-sizer programs; is this a real bug or my error ?

2008-12-03 Thread Alex Tweedly
Ed Leafe wrote: BTW, the Class Designer supports non-sizer layouts, too. In fact, the code for the marquee selection of objects is from PythonCard that Kevin Altis told me about way back when I did the first attempt at creating the tool. That's great news. How do you access

Re: [dabo-users] Non-sizer programs; is this a real bug or my error ?

2008-12-03 Thread Uwe Grauer
Alex Tweedly wrote: Ed Leafe wrote: BTW, the Class Designer supports non-sizer layouts, too. In fact, the code for the marquee selection of objects is from PythonCard that Kevin Altis told me about way back when I did the first attempt at creating the tool. That's great news.

Re: [dabo-users] listbox pair

2008-12-03 Thread Ed Leafe
On Dec 2, 2008, at 11:19 PM, Paul McNett wrote: Of course I'm just spouting without having an implementation, and I'm sure there are (surmountable) problems with my ideas. ;) Well, like I said before: I agree with the ideas, having tried to work that way myself. The seemingly

Re: [dabo-users] Non-sizer programs; is this a real bug or my error ?

2008-12-03 Thread Ed Leafe
On Dec 3, 2008, at 7:33 AM, Alex Tweedly wrote: How do you access the non-sizer mode ? Create a new form, but uncheck the 'Use Sizers' box. The default of using sizers was a conscious decision intended to discourage absolute layouts and promote cross-platform thinking. --

Re: [dabo-users] listbox pair

2008-12-03 Thread Paul McNett
Ed Leafe wrote: On Dec 2, 2008, at 11:19 PM, Paul McNett wrote: Of course I'm just spouting without having an implementation, and I'm sure there are (surmountable) problems with my ideas. ;) Well, like I said before: I agree with the ideas, having tried to work that way myself.

Re: [dabo-users] Non-sizer programs; is this a real bug or my error ?

2008-12-03 Thread Paul McNett
Ed Leafe wrote: On Dec 3, 2008, at 7:33 AM, Alex Tweedly wrote: How do you access the non-sizer mode ? Create a new form, but uncheck the 'Use Sizers' box. The default of using sizers was a conscious decision intended to discourage absolute layouts and promote

Re: [dabo-users] Non-sizer programs; is this a real bug or my error ?

2008-12-03 Thread Ed Leafe
On Dec 3, 2008, at 8:21 AM, Paul McNett wrote: At the risk of becoming an unwelcome complete pain in the ass :) A little late for that, docha think? :-P I'd like to suggest an idea based on Qt Designer for the following workflow for form/class design I think you know my

Re: [dabo-users] Non-sizer programs; is this a real bug or my error ?

2008-12-03 Thread Paul McNett
Ed Leafe wrote: On Dec 3, 2008, at 8:21 AM, Paul McNett wrote: I'd like to suggest an idea based on Qt Designer for the following workflow for form/class design I think you know my response: feel free to implement this and I'd be happy to look at it. You might want to start with

Re: [dabo-users] Non-sizer programs; is this a real bug or my error ?

2008-12-03 Thread Ed Leafe
On Dec 3, 2008, at 8:21 AM, Paul McNett wrote: This gives the lowest barrier to entry, allows for really quick design prototypes, yet still encourages sizers. Actually, I'm of the opinion that this discourages the use of sizers, since for most people it requires turning their

Re: [dabo-users] Non-sizer programs; is this a real bug or my error ?

2008-12-03 Thread Ed Leafe
On Dec 3, 2008, at 8:32 AM, Paul McNett wrote: Perhaps I should make very small proofs-of-concept that we can discuss. Now, how do I fork myself? ;) In comes a high hanging curveball... ;-) -- Ed Leafe ___ Post Messages

Re: [dabo-users] Non-sizer programs; is this a real bug or my error ?

2008-12-03 Thread Paul McNett
Ed Leafe wrote: On Dec 3, 2008, at 8:21 AM, Paul McNett wrote: This gives the lowest barrier to entry, allows for really quick design prototypes, yet still encourages sizers. Actually, I'm of the opinion that this discourages the use of sizers, since for most people it

[dabo-users] ClassDesigner - Attribute Error: 'NoneType' object has no attribute 'CustomerBizobj'

2008-12-03 Thread Bob Sysero llc Dev
Dear Dabo Platform: GTK Python Version: 2.5.2 on linux2 Dabo Version: Version 0.8.4; Revision 4740 UI Version: 2.8.9.1 on wxGTK (gtk2) I am using SQLite database and created a simple customer database. There is only one Table called Customer that has three fields: ID type Integer, valid

Re: [dabo-users] ClassDesigner - Attribute Error: 'NoneType' object hasno attribute 'CustomerBizobj'

2008-12-03 Thread Roger Lovelock
A reply from another newby! Hopefully I am not steering you incorrectly! You need to add the bizObj to your form - the best guide is the document 'The Step-By-Step Guide to Dabo Programming' at http://docs.google.com/View?docid=dg79jzmg_3x78zkp , on pages 13 14. Hope this helps

Re: [dabo-users] Drag'n'drop on a dGrid

2008-12-03 Thread Henning Hraban Ramm
Am 2008-12-03 um 04:35 schrieb Ed Leafe: OK, I've just committed a change to the code that handles DroppedFileHandler and DroppedTextHandler for grids. Grab the latest SVN trunk and let me know how it works for you. That works now, thank you very much! Greetlings from Lake Constance!

Re: [dabo-users] ClassDesigner - Attribute Error: 'NoneType' object has no attribute 'CustomerBizobj'

2008-12-03 Thread Ed Leafe
On Dec 3, 2008, at 2:40 PM, Bob Sysero llc Dev wrote: In the ui folder I created my myCalc.cdxml using the class designer and create a panel with two vertical sizers. The top sizer I selected Add controls from data environment and found the FIRST PROBLEM. When it asked for where my

Re: [dabo-users] Drag'n'drop on a dGrid

2008-12-03 Thread Ed Leafe
On Dec 3, 2008, at 3:07 PM, Henning Hraban Ramm wrote: That works now, thank you very much! Cool! Thanks for bringing this to our attention. -- Ed Leafe ___ Post Messages to: Dabo-users@leafe.com Subscription Maintenance:

Re: [dabo-users] ClassDesigner - Attribute Error: 'NoneType' object has no attribute 'CustomerBizobj'

2008-12-03 Thread Paul McNett
Ed Leafe wrote: On Dec 3, 2008, at 2:40 PM, Bob Sysero llc Dev wrote: database../db/myCalcDB.sqlite/database That's an unfortunate but known issue. Paths are relative from the folder you were in when running the CxnEditor, as Dabo doesn't have a true project manager yet. Glad

Re: [dabo-users] py2exe

2008-12-03 Thread Roger Lovelock
Success! Adding the line :- (biz, glob.glob(biz/*)), to the data files did the job. I will now try to work out how to convert that to an includes directive (unfortunately I have no examples, so I'll have to go digging). As an aside. For development purposes I like the dabo folder

Re: [dabo-users] py2exe

2008-12-03 Thread Paul McNett
Roger Lovelock wrote: Success! Adding the line :- (biz, glob.glob(biz/*)), to the data files did the job. I will now try to work out how to convert that to an includes directive (unfortunately I have no examples, so I'll have to go digging). As an aside. For development purposes I

Re: [dabo-users] ClassDesigner - Attribute Error: 'NoneType' object has no attribute 'CustomerBizobj'

2008-12-03 Thread Ed Leafe
On Dec 3, 2008, at 4:38 PM, Bob Sysero llc Dev wrote: The steps are very similar but when you select Add BizObject you are asked where do you want to save the BizObject in a folder under the name CustomerBizobj.py which I saved in my biz folder. In my CD in the Editor for DesForm

[dabo-users] Setting sizer / spacer proportion

2008-12-03 Thread alex
Here's the recipe for something I tried (I'll include the cdxml at the end, but it probably won't help). Start up Class Designer. Create Vertical Sizer with 3 slots Insert a Button in middle slot In top slot, add a new spacer (size = 10) edit sizer setting for this spacer, set

Re: [dabo-users] Non-sizer programs; is this a real bug or my error ?

2008-12-03 Thread Alex Tweedly
Uwe Grauer wrote: Alex Tweedly wrote: That's great news. How do you access the non-sizer mode ? When I start ClassDesigner, the default (blank) Form already has If you use the menu option New Class/Form you can specify if you want to use sizers. Thanks (and to Ed also for

Re: [dabo-users] Setting sizer / spacer proportion

2008-12-03 Thread Ed Leafe
On Dec 3, 2008, at 5:17 PM, alex wrote: Save it to a file Open the file [ now it looks wrong - the spacers have shrunk to very small - their slot's proportion has reverted to 0, and the 'expand' has also been lost ] Am I maybe setting the 'proportion' in the wrong place ? But if so,

Re: [dabo-users] Setting sizer / spacer proportion

2008-12-03 Thread johnf
On Wednesday 03 December 2008 03:17:01 pm alex wrote: Here's the recipe for something I tried (I'll include the cdxml at the end, but it probably won't help). Start up Class Designer. Create Vertical Sizer with 3 slots Insert a Button in middle slot In top slot, add a new spacer (size =

Re: [dabo-users] Setting sizer / spacer proportion

2008-12-03 Thread Ed Leafe
On Dec 3, 2008, at 5:29 PM, johnf wrote: Works the same on Linux. But I think it would have to do with the fact that you set the spacer to 10. Which means take 10 pix's for space. Try not setting the top sizer as a spacer. It should as expected. It does on my Linux box.

Re: [dabo-users] Non-sizer programs; is this a real bug or my error ?

2008-12-03 Thread Alex Tweedly
Paul McNett wrote: At the risk of becoming an unwelcome complete pain in the ass :) I'd like to suggest an idea based on Qt Designer for the following workflow for form/class design: 1) The appdev adds controls, etc. 2) Position and size controls to the level of accuracy the appdev

Re: [dabo-users] ClassDesigner - Attribute Error: 'NoneType' object has no attribute ' CustomerBizobj'

2008-12-03 Thread johnf
On Wednesday 03 December 2008 04:47:40 pm Bob Sysero llc Dev wrote: Ed Leafe wrote: On Dec 3, 2008, at 4:38 PM, Bob Sysero llc Dev wrote Perhaps you have an old version of dApp.py? Since you have the newer IDE code, I'm assuming that you are running using the SVN code. We recently

Re: [dabo-users] ClassDesigner - Attribute Error: 'NoneType' object has no attribute 'CustomerBizobj'

2008-12-03 Thread Bob Sysero llc Dev
johnf wrote: On Wednesday 03 December 2008 04:47:40 pm Bob Sysero llc Dev wrote: Ed Leafe wrote: On Dec 3, 2008, at 4:38 PM, Bob Sysero llc Dev wrote Perhaps you have an old version of dApp.py? Since you have the newer IDE code, I'm assuming that you are running using the SVN

Re: [dabo-users] ClassDesigner - Attribute Error: 'NoneType' object has no attribute 'CustomerBizobj'

2008-12-03 Thread Bob Sysero llc Dev
Ed Leafe wrote: On Dec 3, 2008, at 8:26 PM, Bob Sysero llc Dev wrote: My question is why do you have to be in the top project folder to access the biz, db, ui .. folders? Because when the app starts up, it will be running from the main.py in the project directory, and

Re: [dabo-users] ClassDesigner - Attribute Error: 'NoneType' object has no attribute 'CustomerBizobj'

2008-12-03 Thread Ed Leafe
On Dec 3, 2008, at 8:45 PM, Bob Sysero llc Dev wrote: Thank you Ed I am slowly understanding. That's great. Keep the questions coming! -- Ed Leafe ___ Post Messages to: Dabo-users@leafe.com Subscription Maintenance:

Re: [dabo-users] Setting sizer / spacer proportion

2008-12-03 Thread Ed Leafe
On Dec 3, 2008, at 5:28 PM, Ed Leafe wrote: Am I maybe setting the 'proportion' in the wrong place ? But if so, why does it appear to work until it has been saved / re-read ? I've done a lot of work recently tweaking the defaults for various items in the Class Designer. Since we only

[dabo-users] new error from CD

2008-12-03 Thread johnf
Attempting to add data using add control from data I the following error: Traceback (most recent call last): File /home/johnf/downloads/dabo/dabo/ui/uiwx/dControlMixin.py, line 27, in _onWxHit self.raiseEvent(dEvents.Hit, evt, *args, **kwargs) File

Re: [dabo-users] new error from CD

2008-12-03 Thread johnf
On Wednesday 03 December 2008 08:35:16 pm johnf wrote: Attempting to add data using add control from data I the following error: Traceback (most recent call last): File /home/johnf/downloads/dabo/dabo/ui/uiwx/dControlMixin.py, line 27, in _onWxHit self.raiseEvent(dEvents.Hit, evt,

[dabo-users] can't delete a grid column in CD

2008-12-03 Thread johnf
I could not delete a grid column from the ClassDesigner. I do get a standard out statement but no traceback: NO ON CONTEXT 'controlMix' object has no attribute 'ControllingSizer' -- John Fabiani ___ Post Messages to: Dabo-users@leafe.com