Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread johnf
Well, two things have pop'd up that are really important. The first is very important – the definition of “RegID”. I said that Dabo will assign a unique RegID if one is not assigned by the programmer. This is WRONG! “RegID” must be assigned by the programmer. It was my misunderstanding.

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread Uwe Grauer
johnf wrote: Ed and Paul are programmers and by definition are lazy (we all are). So they have created short cuts for many of the things that you'll do daily while programming with Dabo. There are many so I'll only show two and let you explore/find the others for yourself. The

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread Henning Hraban Ramm
def _openDialog(self,evt): # need to receive the evt (in this case a click or Hit) evt.stop() theDialog=dabo.ui.dFileDialog(self) theDialog.show() if sys.platform == 'win32': myseperator

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread Ed Leafe
On Dec 4, 2007, at 10:28 AM, Bill Bedford wrote: Just one other small point, Could you change the subject for each of the next mini tutorials please? I will make finding them much easier. Actually, start a new thread, rather than replying and changing the subject. Most email programs

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread Bill Bedford
On Tue, 4 Dec 2007 00:33:29 -0800, johnf wrote: Well, two things have pop'd up that are really important. Just one other small point, Could you change the subject for each of the next mini tutorials please? I will make finding them much easier. -- Bill Bedford Man is an animal suspended

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread johnf
On Tuesday 04 December 2007 01:08:15 am Uwe Grauer wrote: Nice done John. People new to Dabo will appreciate these tutorials very much. Hopefully your posts will get included into the wiki later. Uwe Thanks and that is what going to happen. I'll wrap all the messages up and post on the

[dabo-users] Check and radio menu items don't have check boxes in windows...

2007-12-04 Thread Nate Lowrie
Under Windows, the Checks appear as dots. I can live with this as the dots appear and disappear as the item is checked and unchecked. However, with the radio menu items, all of the items in a group have the dots. There is absolutely no way to tell what is checked. I am pretty sure this is a Wx

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread johnf
On Tuesday 04 December 2007 01:26:20 am Henning Hraban Ramm wrote: def _openDialog(self,evt): # need to receive the evt (in this case a click or Hit) evt.stop() theDialog=dabo.ui.dFileDialog(self) theDialog.show()

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread Nate Lowrie
On Dec 4, 2007 9:17 AM, johnf [EMAIL PROTECTED] wrote: On Tuesday 04 December 2007 01:26:20 am Henning Hraban Ramm wrote: def _openDialog(self,evt): # need to receive the evt (in this case a click or Hit) evt.stop()

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread Ed Leafe
On Dec 4, 2007, at 11:33 AM, Nate Lowrie wrote: Also note that instead of combining things by yourself, you can use the os.path.join function. It takes any number of arguments and will automatically add in the right separator. Ex. os.path.join(usr, local, MyDirectory, MyFile) will spit back

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread johnf
On Tuesday 04 December 2007 07:18:39 am Nate Lowrie wrote: It's not being lazy by any means. It is just being more productive. 8) Is that what you tell your employer ;-) Note here that you can write this as: Vsizer.append(dabo.ui.dButton(self, Caption='Button'),1,'x') or

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread johnf
On Tuesday 04 December 2007 07:28:02 am Bill Bedford wrote: On Tue, 4 Dec 2007 00:33:29 -0800, johnf wrote: Well, two things have pop'd up that are really important. Just one other small point, Could you change the subject for each of the next mini tutorials please? I will make finding them

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread Ed Leafe
On Dec 4, 2007, at 11:37 AM, johnf wrote: So I decided that I should stop any event after it did it job. In a tutorial, you should only include what is necessary, as it will become a reference doc for others, and they may assume that they need to write evt.stop() everywhere.

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread Ed Leafe
On Dec 4, 2007, at 11:41 AM, johnf wrote: But it will break the thread for many that group on subject lines within their email clients. The point is that it *should* be broken. You are not writing about 'standalong Dabo games', are you? -- Ed Leafe -- http://leafe.com --

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread johnf
On Tuesday 04 December 2007 08:33:13 am Nate Lowrie wrote: Also note that instead of combining things by yourself, you can use the os.path.join function. It takes any number of arguments and will automatically add in the right separator. Ex. os.path.join(usr, local, MyDirectory, MyFile)

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread johnf
On Tuesday 04 December 2007 08:47:01 am Ed Leafe wrote: On Dec 4, 2007, at 11:37 AM, johnf wrote: So I decided that I should stop any event after it did it job. In a tutorial, you should only include what is necessary, as it will become a reference doc for others, and they may assume

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread johnf
On Tuesday 04 December 2007 08:47:51 am Ed Leafe wrote: On Dec 4, 2007, at 11:41 AM, johnf wrote: But it will break the thread for many that group on subject lines within their email clients. The point is that it *should* be broken. You are not writing about 'standalong Dabo

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread Ed Leafe
On Dec 4, 2007, at 11:54 AM, johnf wrote: You're right and I met to remove the line but forgot. Still in our code is there any harm in stopping the event? There might be, but I doubt it. The harm is in teaching a bad/ useless habit. -- Ed Leafe -- http://leafe.com --

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread Uwe Grauer
johnf wrote: OK what should the thread be named? It's sort of important because the name should match what we will use on the wiki. On the wiki you could just include references to the subjects you used. ___ Post Messages to:

[dabo-users] Image in a button

2007-12-04 Thread Nate Lowrie
I know I have done it before somewhere. What is the syntax to put an Image in a button? Couldn't find anything in the code... Cheers, Nate L. ___ Post Messages to: Dabo-users@leafe.com Subscription Maintenance:

Re: [dabo-users] Image in a button

2007-12-04 Thread Ed Leafe
On Dec 4, 2007, at 12:36 PM, Nate Lowrie wrote: I know I have done it before somewhere. What is the syntax to put an Image in a button? Couldn't find anything in the code... Use dBitmapButton, not dButton. -- Ed Leafe -- http://leafe.com -- http://dabodev.com

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread Paul McNett
Nate Lowrie wrote: Note that OnHit is generally the controls main event. On a button that means when it is pressed. On a list control it is when a list item is selected. On a dTextBox it is when you enter text and hit the enter key. It is a convenient thing to know. If you need specific

Re: [dabo-users] Image in a button

2007-12-04 Thread Nate Lowrie
thanks... I feel dumb at the moment... On Dec 4, 2007 10:41 AM, Ed Leafe [EMAIL PROTECTED] wrote: On Dec 4, 2007, at 12:36 PM, Nate Lowrie wrote: I know I have done it before somewhere. What is the syntax to put an Image in a button? Couldn't find anything in the code... Use

Re: [dabo-users] Image in a button

2007-12-04 Thread johnf
On Tuesday 04 December 2007 09:36:29 am Nate Lowrie wrote: I know I have done it before somewhere. What is the syntax to put an Image in a button? Couldn't find anything in the code... Cheers, Nate L. use a dBitmapButton and Picture=/home/mypics/aPicofNate.png. What a thought a picture

Re: [dabo-users] Image in a button

2007-12-04 Thread Paul McNett
Nate Lowrie wrote: thanks... I feel dumb at the moment... On Dec 4, 2007 10:41 AM, Ed Leafe [EMAIL PROTECTED] wrote: On Dec 4, 2007, at 12:36 PM, Nate Lowrie wrote: I know I have done it before somewhere. What is the syntax to put an Image in a button? Couldn't find anything in the

Re: [dabo-users] Image in a button

2007-12-04 Thread Nate Lowrie
Ok, stuck again...Can I put a caption under the bitmap? On Dec 4, 2007 10:43 AM, johnf [EMAIL PROTECTED] wrote: On Tuesday 04 December 2007 09:36:29 am Nate Lowrie wrote: I know I have done it before somewhere. What is the syntax to put an Image in a button? Couldn't find anything in the

Re: [dabo-users] Image in a button

2007-12-04 Thread Nate Lowrie
On Dec 4, 2007 10:45 AM, Paul McNett [EMAIL PROTECTED] wrote: Nate Lowrie wrote: thanks... I feel dumb at the moment... On Dec 4, 2007 10:41 AM, Ed Leafe [EMAIL PROTECTED] wrote: On Dec 4, 2007, at 12:36 PM, Nate Lowrie wrote: I know I have done it before somewhere. What is the

Re: [dabo-users] Image in a button

2007-12-04 Thread Ed Leafe
On Dec 4, 2007, at 12:45 PM, Paul McNett wrote: Use dBitmapButton, not dButton. Actually, this has bothered me from the beginning: we should really have a single class, dButton, which can display text and/or pictures. This will probably wait until our redesign - if it happens -

Re: [dabo-users] Image in a button

2007-12-04 Thread Ed Leafe
On Dec 4, 2007, at 12:46 PM, Nate Lowrie wrote: Ok, stuck again...Can I put a caption under the bitmap? Not unless you draw it yourself using: cap = self.drawText(...) The wxPython implementation centers the text on the button, along with the image, so that if you have both,

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread Nate Lowrie
On Dec 4, 2007 10:41 AM, Paul McNett [EMAIL PROTECTED] wrote: Nate Lowrie wrote: Note that OnHit is generally the controls main event. On a button that means when it is pressed. On a list control it is when a list item is selected. On a dTextBox it is when you enter text and hit the

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread Paul McNett
Nate Lowrie wrote: On Dec 4, 2007 10:41 AM, Paul McNett [EMAIL PROTECTED] wrote: Nate Lowrie wrote: On one last note, I think that you should make the dTextBox read only. Coming from a correct code standpoint, if the users are entering the dTextBox value through the dFileDialog, you

[dabo-users] [OT] Consultant No More

2007-12-04 Thread Ed Leafe
After 14 years of being an independent consultant, I've decided to return to the ranks of the employed. I've just accepted a position as Senior Python Developer with Rackspace Managed Hosting in San Antonio, Texas. For me it means moving down to San Antonio and leaving my

Re: [dabo-users] [OT] Consultant No More

2007-12-04 Thread lalong1
Congratulations! Best of luck to you and yours. Larry Long -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ed Leafe Sent: Tuesday, December 04, 2007 1:33 PM To: ProFox Mailing List; Dabo Users list Subject: [dabo-users] [OT] Consultant No More

Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread Uwe Grauer
Nate Lowrie wrote: On Dec 4, 2007 10:41 AM, Paul McNett [EMAIL PROTECTED] wrote: Nate Lowrie wrote: Note that OnHit is generally the controls main event. On a button that means when it is pressed. On a list control it is when a list item is selected. On a dTextBox it is when you enter

Re: [dabo-users] Image in a button

2007-12-04 Thread Uwe Grauer
Nate Lowrie wrote: On Dec 4, 2007 10:45 AM, Paul McNett [EMAIL PROTECTED] wrote: But at the very least we should have named it 'dImageButton' or 'dPictureButton'. It is misleading because you can use picture formats other than bmp in the button. I agree with you on the single class. Yes,

Re: [dabo-users] [OT] Consultant No More

2007-12-04 Thread Uwe Grauer
Ed Leafe wrote: After 14 years of being an independent consultant, I've decided to return to the ranks of the employed. I've just accepted a position as Senior Python Developer with Rackspace Managed Hosting in San Antonio, Texas. Very best wishes for you! Working with other

Re: [dabo-users] [OT] Consultant No More

2007-12-04 Thread Mike Wohlrab
Congrats on the job Ed. Mike Wohlrab -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ed Leafe Sent: Tuesday, December 04, 2007 3:07 PM To: Dabo Users list Subject: Re: [dabo-users] [OT] Consultant No More On Dec 4, 2007, at 2:54 PM, Nate Lowrie wrote:

Re: [dabo-users] [OT] Consultant No More

2007-12-04 Thread Ted Roche
On Dec 4, 2007 1:33 PM, Ed Leafe [EMAIL PROTECTED] wrote: After 14 years of being an independent consultant, I've decided to return to the ranks of the employed. I've just accepted a position as Senior Python Developer with Rackspace Managed Hosting in San Antonio, Texas. That must

Re: [dabo-users] [OT] Consultant No More

2007-12-04 Thread Ed Leafe
On Dec 4, 2007, at 3:45 PM, Ted Roche wrote: That must have been a tough decision. Best of luck. Getting paid for Python work -- very cool! If it wasn't such an impressive company, I would never have done it. And yeah, I don't think I could go back to VFP at this point! -- Ed Leafe

[dabo-users] linking data controls in preference dialog

2007-12-04 Thread Nate Lowrie
I have a dCheckbox in a preference dialog and I want it to set the value of the preference setting MySetting. Do I have to create the glue code by hand or can I bind it with say DataSoruce/DataField? If I can bind it, what is the syntax for binding it? Cheers, Nate L.

[dabo-users] ClassDesigner padl

2007-12-04 Thread Adrian Klaver
I just tried to use ClassDesigner after latest update and got following error: Traceback (most recent call last): File ClassDesigner.py, line 14, in module from ClassDesignerFormMixin import ClassDesignerFormMixin as dfm File /home/aklaver/test/dabo/ide/ClassDesignerFormMixin.py, line 9,

Re: [dabo-users] ClassDesigner padl

2007-12-04 Thread Paul McNett
Adrian Klaver wrote: I just tried to use ClassDesigner after latest update and got following error: Traceback (most recent call last): File ClassDesigner.py, line 14, in module from ClassDesignerFormMixin import ClassDesignerFormMixin as dfm File

Re: [dabo-users] linking data controls in preference dialog

2007-12-04 Thread Paul McNett
Nate Lowrie wrote: I have a dCheckbox in a preference dialog and I want it to set the value of the preference setting MySetting. Do I have to create the glue code by hand or can I bind it with say DataSoruce/DataField? If I can bind it, what is the syntax for binding it? I think you should

Re: [dabo-users] ClassDesigner padl

2007-12-04 Thread Ed Leafe
On Dec 4, 2007, at 4:29 PM, Adrian Klaver wrote: I just tried to use ClassDesigner after latest update and got following error: Traceback (most recent call last): File ClassDesigner.py, line 14, in module from ClassDesignerFormMixin import ClassDesignerFormMixin as dfm File

Re: [dabo-users] ClassDesigner padl

2007-12-04 Thread Ed Leafe
On Dec 4, 2007, at 4:44 PM, Paul McNett wrote: Hmm... it looks like that was fixed in revision 3760 so it should have made it into 3767 which it looks like is the revision you are using. However, because Web Update is for the Dabo library itself and not for applications that use the Dabo

Re: [dabo-users] linking data controls in preference dialog

2007-12-04 Thread Ed Leafe
On Dec 4, 2007, at 4:45 PM, Paul McNett wrote: I have a dCheckbox in a preference dialog and I want it to set the value of the preference setting MySetting. Do I have to create the glue code by hand or can I bind it with say DataSoruce/DataField? If I can bind it, what is the syntax for

Re: [dabo-users] ClassDesigner padl

2007-12-04 Thread Adrian Klaver
-- Original message -- From: Ed Leafe [EMAIL PROTECTED] On Dec 4, 2007, at 4:44 PM, Paul McNett wrote: Hmm... it looks like that was fixed in revision 3760 so it should have made it into 3767 which it looks like is the revision you are using. However,

Re: [dabo-users] Check and radio menu items don't have check boxes in windows...

2007-12-04 Thread Ed Leafe
On Dec 4, 2007, at 10:51 AM, Nate Lowrie wrote: Under Windows, the Checks appear as dots. I can live with this as the dots appear and disappear as the item is checked and unchecked. However, with the radio menu items, all of the items in a group have the dots. There is absolutely no way to

Re: [dabo-users] [OT] Consultant No More

2007-12-04 Thread Pablo Rivera
Quite a decision Ed. I wish you and your family well in the trial periods that are sure to come. Our prayers go with you. PabloSr. * -Original Message- * From: [EMAIL PROTECTED] [mailto:dabo-users- * [EMAIL PROTECTED] On Behalf Of Ed Leafe * Sent: Tuesday, December 04, 2007 1:33 PM *