Qt4 backend crashes when rcParam['toolbar'] is None

The Qt4 backend crashes with a Segmentation Fault when no toolbar is requested. For example:

from matplotlib import pyplot as plt
from matplotlib import rcParams
rcParams['toolbar'] = 'None'
fig=plt.figure()
plt.show()

I have attached a possible patch, but since I've never really touched the Qt4 backend before, thought I'd solicit some feedback before committing.

Mike

backend_qt4.py.diff (1.57 KB)

···

--

Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA

The Qt4 backend crashes with a Segmentation Fault when no toolbar is
requested. For example:

Mike,

Have the other backends been tested for the same problem?

Eric

···

On 06/11/2010 07:44 AM, Michael Droettboom wrote:

from matplotlib import pyplot as plt
from matplotlib import rcParams
rcParams['toolbar'] = 'None'
fig=plt.figure()
plt.show()

I have attached a possible patch, but since I've never really touched
the Qt4 backend before, thought I'd solicit some feedback before
committing.

Mike

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

Wx, Gtk, Tk all work for me. Couldn't test Qt "classic" as I don't have pyqt 3.x installed on my system.

Mike

···

On 06/11/2010 01:56 PM, Eric Firing wrote:

On 06/11/2010 07:44 AM, Michael Droettboom wrote:
   

The Qt4 backend crashes with a Segmentation Fault when no toolbar is
requested. For example:
     

Mike,

Have the other backends been tested for the same problem?

Eric

from matplotlib import pyplot as plt
from matplotlib import rcParams
rcParams['toolbar'] = 'None'
fig=plt.figure()
plt.show()

I have attached a possible patch, but since I've never really touched
the Qt4 backend before, thought I'd solicit some feedback before
committing.

Mike

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options
     
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options
   
--
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA

Wx, Gtk, Tk all work for me. Couldn't test Qt "classic" as I don't have
pyqt 3.x installed on my system.

I just now installed pyqt3 (after some thrashing around--it turns out one needs the python-qt-dev package on ubuntu), and verified that qt3agg passes the test.

Eric

···

On 06/11/2010 08:03 AM, Michael Droettboom wrote:

Mike

On 06/11/2010 01:56 PM, Eric Firing wrote:

On 06/11/2010 07:44 AM, Michael Droettboom wrote:

The Qt4 backend crashes with a Segmentation Fault when no toolbar is
requested. For example:

Mike,

Have the other backends been tested for the same problem?

Eric

from matplotlib import pyplot as plt
from matplotlib import rcParams
rcParams['toolbar'] = 'None'
fig=plt.figure()
plt.show()

I have attached a possible patch, but since I've never really touched
the Qt4 backend before, thought I'd solicit some feedback before
committing.

Mike

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options