Well, if three people want this, how could I be so heartless as to let you 
guys wait until after 2.0?

Plugin attached.

Peter

> Add my vote for being able to hide the toolbar as in 1.x -- it keeps
> the UI as clean and simple as possible. A plugin would be fine.
> 
> On Aug 31, 7:36 am, Peter Bienstman <[email protected]> wrote:
> > On Tuesday, August 30, 2011 04:39:35 PM Patrick wrote:
> > > I like being able to move the shortcut icons bar around the screen,
> > > but there seems to be no way to hide it like I could in Mnemosyne
> > > 1.0.
> > 
> > For such a simple toolbar as Mnemosyne has, wouldn't this be a bit
> > feature creep? Mind you, it could go in a plugin, though, post 2.0, as
> > you're already the second one to request it.

-- 
You received this message because you are subscribed to the Google Groups 
"mnemosyne-proj-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mnemosyne-proj-users?hl=en.

#
# hide_toolbar.py <[email protected]>
#

from PyQt4 import QtCore, QtGui

from mnemosyne.libmnemosyne.plugin import Plugin


class HideToolbarPlugin(Plugin):
    
    name = "Hide toolbar"
    description = "Hide the main toolbar"

    def __init__(self, component_manager):
        Plugin.__init__(self, component_manager)

    def activate(self):
        Plugin.activate(self)
        self.main_widget().tool_bar.setVisible(False)

    def deactivate(self):
        Plugin.deactivate(self)
        self.main_widget().tool_bar.setVisible(True)
  

# Register plugin.

from mnemosyne.libmnemosyne.plugin import register_user_plugin
register_user_plugin(HideToolbarPlugin)

Reply via email to