|
From: Kevin A. <al...@se...> - 2002-02-12 17:45:06
|
The attribute is 'defaultBackgroundPosition'.
Mine is set as
'defaultBackgroundPosition':(5, 5),
The relevant code is around line 668 of model.py
# override for application defined position
position = config.getOption('defaultBackgroundPosition')
if position is None:
position = aBgRsrc.position
I think this has always been a manual option that you had to add yourself,
otherwise whatever default we provided would always end up overriding the
position defined in a sample.
ka
> -----Original Message-----
> From: pyt...@li...
> [mailto:pyt...@li...]On Behalf Of Andy
> Todd
> Sent: Tuesday, February 12, 2002 3:23 AM
> To: Pythoncard-Users
> Subject: [Pythoncard-users] Playing with pythoncard_user_config.py
>
>
> Evening all,
>
> I've just been playing with PythonCard on my home machine and one of the
> first things I did was to set up my own pythoncard_user_config.py. I
> checked the documentation and couldn't find any way to specify the
> position of the application window in the config file. I can tell the
> framework where to place the shell window ('shellPosition':(10, 10)) or
> any of the other debug windows but there is no mention of how to specify
> a default position for the actual application window. If I use the "Save
> Configuration" option on the debug menu an entry is written to the user
> configuration file ('position':( x, y )) but this *seems* to be ignored
> the next time I start up the application.
>
> I started to trace this through the framework but gave up when my
> headache really kicked in. So, I'm going for the easy option - anyone
> want to explain to this rank amateur what I'm missing?
>
> BTW, as part of the install instructions we should/could provide a
> pythoncard.pth file with the name of the directory we install PythonCard
> into. If this is subsequently placed in the Python home directory (e.g.
> c:\Python22 on Windows) it automatically puts PythonCard on the Python
> path, no mucking about with $PATH variables or registry settings. Just a
> thought.
>
> Regards,
> Andy
> --
> -----------------------------------------------------------------------
> From the desk of Andrew J Todd esq.
> "So I curtailed my Walpoling activities, sallied forth and infiltrated
> your place of purveyance to negotiate the vending of some cheesy
> comestibles." - Monty Python.
>
>
> _______________________________________________
> Pythoncard-users mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
>
|