jzaremba / guiqwt

Automatically exported from code.google.com/p/guiqwt
Other
0 stars 1 forks source link

PlotManager.create_action has fewer kwargs than qthelpers.create_action #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

PlotManager.create_action calls qthelpers.create_action, but it lacks some of 
its keyword arguments.

Specifically, it lacks the "checkable", "context" and "enabled" keywords.

I miss the checkable one since I want to create actions that are checkable 
without having to connect to the "toggled" signal.

Suggestion: unless there is some reason against it, I would simply implement 
PlotManager.create_action() as follows:

def create_action(self, *a, **kw): 
   return create_action(self.main, *a, **kw)

Original issue reported on code.google.com by cpasc...@cells.es on 9 Jan 2013 at 8:59