Displaying 16 results from an estimated 16 matches for "get_menu_items".
2008 Jan 18
1
Noob question for wxMenu.get_menu_items()
How do I iterate through the pseudo-template list class containing
wxMenuItem pointers.
Am still a bit of a Ruby/wxRuby noob.
Currently have this:
pp mymenu.get_menu_items()
which prints:
#<SWIG::TYPE_p_wxMenuItemList:0x4634fa8>
However when I try to do:
mymenu.get_menu_items().each {|key| ...} it tells me there is no each
method for this class (SWIG::TYPE_p_wxMenuItemList)
2008 Jan 22
0
[ wxruby-Bugs-17390 ] Wx::Menu#get_menu_items
...2 07:42
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=17390&group_id=35
Category: Incorrect behavior
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Alex Fenton (brokentoy)
Assigned to: Alex Fenton (brokentoy)
Summary: Wx::Menu#get_menu_items
Initial Comment:
Typemap needed for return value - currently opaque SWIG pointer
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=17390&group_id=35
2006 Nov 04
0
[720] trunk/wxruby2/doc/textile/menu.txtl: Update, rubyify and tidy
...cx"> h3(#Menu_gethelpstring). Menu#get_help_string
</span><span class="cx">
</span><span class="lines">@@ -410,7 +397,7 @@
</span><span class="cx">
</span><span class="cx"> h3(#Menu_getmenuitems). Menu#get_menu_items
</span><span class="cx">
</span><del>- "MenuItemList":menuitemlist.html *get_menu_items*()
</del><ins>+ Array *get_menu_items*()
</ins><span class="cx">
</span><span class="cx"> Returns the list of...
2010 Mar 09
1
Ruby 1.9 and Searchlogic problem
...lize''
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:25:in
`new''
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:25:in
`searchlogic''
/home/dries/Projects/cloud/app/controllers/products_controller.rb:62:in
`get_menu_items''
Line 62 in product controller:
product_type_search = ProductType.searchlogic(:products_active => true,
:products_on_sale => true, :products_available_for_gallery => true)
Somebody who knows why this problem occurs? Therefore it was working
great with ruby 1.8
Our version of...
2009 Sep 23
2
[PATCH node] Introduces the virtual network administration functions.
..."An Exception Has Occurred",
- str(error) + "\n" + traceback.format_exc(),
- buttons = ["OK"])
- screen.popWindow()
- screen.finish()
- finished = True
+ def get_menu_items(self):
+ return (("Node Administration", NODE_MENU),
+ ("Network Administration", NETWORK_MENU))
+
+ def handle_selection(self, page):
+ if page is NODE_MENU: NodeMenu()
+ elif page is NETWORK_MENU: NetworkMenu()
+
+def MainMenu():
+...
2009 Oct 26
0
[PATCH node] Users can now work with remote libvirt hosts.
...Screen
+from changehost import ChangeHost
+from addhost import AddHost
+from removehost import RemoveHost
+
+SELECT_HOST = 1
+ADD_HOST = 2
+REMOVE_HOST = 3
+
+class HostMenuScreen(MenuScreen):
+ def __init__(self):
+ MenuScreen.__init__(self, "Host Menu Screen")
+
+ def get_menu_items(self):
+ return (("Select A Host", SELECT_HOST),
+ ("Add A Host", ADD_HOST),
+ ("Remove A Host", REMOVE_HOST))
+
+ def handle_selection(self, item):
+ if item is SELECT_HOST: ChangeHost()
+ elif item is ADD_HOS...
2009 Dec 03
1
Rebased against next...
This set of patches have been rebased since the originals have grown stale.
2009 Nov 11
1
Combined patch set for migration...
This patch set includes both the host configuration patch and the
node migration patch which depends on it. And the latter has a fix
for missing files.
2009 Oct 28
1
[PATCH] Users can now work with remote libvirt hosts.
...Screen
+from changehost import ChangeHost
+from addhost import AddHost
+from removehost import RemoveHost
+
+SELECT_HOST = 1
+ADD_HOST = 2
+REMOVE_HOST = 3
+
+class HostMenuScreen(MenuScreen):
+ def __init__(self):
+ MenuScreen.__init__(self, "Host Menu Screen")
+
+ def get_menu_items(self):
+ return (("Select A Host", SELECT_HOST),
+ ("Add A Host", ADD_HOST),
+ ("Remove A Host", REMOVE_HOST))
+
+ def handle_selection(self, item):
+ if item is SELECT_HOST: ChangeHost()
+ elif item is ADD_HOS...
2009 Dec 08
2
Rebased patches, fixed a rebasing problem...
The previous patch set had an error and one development branch's changes
showed up twice, and two different change sets. So it was missing the bulk
of the configuration work. This patch set fixes that.
2009 Oct 12
1
First draft: node storage admin
This patch provides the ability to create a "dir" type storage pool, and to add
and remove volumes for existing pools.
2009 Oct 27
1
Storage admin patches
This set of patches supercedes the previous set, and has been rebased
with changes from upstream.
2009 Nov 09
1
Rebased again...
This patch again rebases on upstream and should apply on next as of right now.
2009 Oct 14
0
[PATCH node] Provides a new storage administration system to the managed node.
...nu
+from storagemenu import StoragePoolMenu
import utils
import logging
NODE_MENU = 1
NETWORK_MENU = 2
-EXIT_CONSOLE = 99
+STORAGE_MENU = 3
+EXIT_CONSOLE = 4
class MainMenuScreen(MenuScreen):
def __init__(self):
MenuScreen.__init__(self, "Main Menu")
def get_menu_items(self):
- return (("Node Administration", NODE_MENU),
- ("Network Administration", NETWORK_MENU))
-
- def handle_selection(self, page):
- if page is NODE_MENU: NodeMenu()
- elif page is NETWORK_MENU: NetworkMenu()
+ return ((&quo...
2009 Oct 21
1
Storage administration and refactoring of domain admin
This pair of patches provide a new storage admin interface. Then, on top of that,
it refactors the domain administration pieces to now properly use storage pools
and volumes when defining a new VM.
2009 Oct 21
1
[PATCH node] Renamed files and menu items for node administration:
...-LIST_DOMAINS = 5
-CREATE_USER = 6
+ADD_DOMAIN = 1
+CREATE_DOMAIN = 2
+STOP_DOMAIN = 3
+REMOVE_DOMAIN = 4
+LIST_DOMAINS = 5
+CREATE_USER = 6
class NodeMenuScreen(MenuScreen):
def __init__(self):
MenuScreen.__init__(self, "Node Administration")
def get_menu_items(self):
- return (("Define A Domain", DEFINE_DOMAIN),
- ("Create A Domain", CREATE_DOMAIN),
- ("Destroy A Domain", DESTROY_DOMAIN),
- ("Undefine A Domain", UNDEFINE_DOMAIN),
-...