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

 
 

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

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

Add a New Comment Rich Markup
   

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>
Group administrator
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>
Group administrator
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>
Group 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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.13-5884.
    Corresponding source code