bugpyFormex - Bugs: bug #43462, console and opengl.draw. why it is...

 
 

bug #43462: console and opengl.draw. why it is not imported by default?

Submitted by:  francesco <francio>
Submitted on:  Thu 23 Oct 2014 01:23:53 PM UTC  
 
Category:  GUI Severity:  3 - Normal
Item Group:  Functionality error Status:  Confirmed
Privacy:  Public Assigned to:  Benedict Verhegghe <bverheg>
Open/Closed:  Open

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 26 Oct 2014 09:28:40 PM UTC, comment #2: 

As a workaround, you can put the following in your
~/.config/startup.py:

if pf.console:
    pf.console.runSource('from pyformex.gui.draw import *')

The startup.py (if it exists) is executed as first script on starting pyFormex.

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Sun 26 Oct 2014 08:49:04 PM UTC, comment #1: 

Because the console is experimental? ;)

No, seriously, it is supposed to load all the pyFormex Globals (which includes draw* if the gui is loaded), but I guess that because the console is loaded before the gui is operational, the draw* symbols are not included. So this is a bug and it should be fixed indeed.

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Thu 23 Oct 2014 01:23:53 PM UTC, original submission:  

in the console this module has to be imported explicitely
can be imported by default?

francesco <francio>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bverheg (Posted a comment)
  • -email is unavailable- added by francio (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-10-26 bverheg Assigned toNone => bverheg
    2014-10-26 bverheg CategoryNone => GUI
        Severity1 - Wish => 3 - Normal
        Item GroupFeature request => Functionality error
        StatusNone => Confirmed

    Back to the top


    Powered by Savane 3.5