Displaying 15 results from an estimated 15 matches for "no_wx_err".
2006 Oct 05
8
samples
What do you think about adding a shebang line to the samples so they can
be launched on linux/mac like you can on windows?
Roy
2008 Feb 01
0
[ wxruby-Bugs-17697 ] "puts Frame.show" crashes application
...me to terminate it in an unusual way.
Please contact the application''s support team for more information."
My system:
Windows XP SP 2
Ruby 1.8.6
gem 1.0.1
wxruby 1.9.4
Thanks very much. Wxruby rocks!
The program:
begin
require ''wx''
rescue LoadError => no_wx_err
begin
require ''rubygems''
require ''wx''
rescue LoadError
raise no_wx_err
end
end
include Wx
class BugExample < Frame
def initialize(*args)
super
panel = Panel.new(self)
sizer = BoxSizer.new(Wx::VERTICAL)
# comment the line below and the b...
2008 Jan 04
2
problem with Menu.append_check_item()
...em().
This is the output I get:
% ruby test-menu.rb
#<Wx::MenuItem:0xb74c036c>
nil
Am I missing something or is this a bug? Both menu items are created and
work as expected. I am running the 1.9.2 tarball.
#!/usr/bin/env ruby
begin
require ''wx''
rescue LoadError => no_wx_err
begin
require ''rubygems''
load ''wx''
rescue
raise no_wx_err
end
end
include Wx
class MinimalFrame < Wx::Frame
def initialize(title)
# The main application frame has no parent (nil)
super(nil, :title => title, :size => [ 700, 40...
2007 Apr 05
7
Re: how to use Chinese Characters in wxRuby?
yes,I'm using wxruby2
When I change
"samples/text/unicode.rb" 's content:
require 'wx'
into
begin
require 'wx'
rescue LoadError => no_wx_err
begin
require 'rubygems'
require 'wx'
rescue LoadError
raise no_wx_err
end
end
and run unicode.rb in this way:
ruby -Ku unicode.rb
I got the error message like this:
unicode.rb:119: syntax error, unexpected tCONSTANT, expecting ')'
fd = Wx::FileDialog...
2007 Mar 20
0
[903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.
...2/wxwidgets_282/samples/grid/grid.rb        2007-03-20 00:03:40 UTC (rev 903)
</span><span class="lines">@@ -1,200 +1,201 @@
</span><del>-begin
- require ''wx''
-rescue LoadError => no_wx_err
- begin
- require ''rubygems''
- load ''wx''
- rescue
- raise no_wx_err
- end
-end
-
-
-class GridFrame < Wx::Frame
-
- def initialize(parent, id = -1, title = "MyFrame",
- pos = Wx::DEFAULT_POSITION,
-...
2007 Sep 05
6
centering MessageDialog
Hi,
is there any way to center the default Wx::MessageDialog or Wx::message_box
on parent (owner) instead of screen?
I haven''t found any constant other than Wx::DEFAULT_POSITION.
thanks for your help.
fabio.
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Dec 12
0
[783] trunk/wxruby2: Tweak load error handling so failures with binary lib are reported correctly
...p;nbsp     2006-12-12 00:43:14 UTC (rev 783)
</span><span class="lines">@@ -6,9 +6,9 @@
</span><span class="cx"> require ''wx''
</span><span class="cx"> rescue LoadError => no_wx_err
</span><span class="cx"> begin
</span><del>- require ''rubygems''
- require ''wx''
- rescue LoadError
</del><ins>+ require ''rubygems''
+ load ''wx''
+ rescue
</ins>&...
2006 Dec 12
0
[782] trunk/wxruby2/samples/bigdemo: HtmlHelpWindow sample with helpfile
.../span><span class="lines">@@ -0,0 +1,57 @@
</span><ins>+
+#!/usr/bin/env ruby
+# wxRuby2 Sample Code. Copyright (c) 2004-2006 Kevin B. Smith
+# Freely reusable code: see SAMPLES-LICENSE.TXT for details
+
+begin
+ require ''wx''
+rescue LoadError => no_wx_err
+ begin
+ require ''rubygems''
+ require ''wx''
+ rescue LoadError
+ raise no_wx_err
+ end
+end
+
+
+class TestPanel < Wx::Panel
+ def initialize(parent, log)
+ super(parent, -1, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE,
+ Wx::NO_FULL_REPAI...
2007 Feb 14
0
[875] trunk/wxruby2/samples: Add expanded grid sample
...+++ trunk/wxruby2/samples/grid/grid.rb        2007-02-14 20:07:21 UTC (rev 875)
</span><span class="lines">@@ -0,0 +1,200 @@
</span><ins>+begin
+ require ''wx''
+rescue LoadError => no_wx_err
+ begin
+ require ''rubygems''
+ load ''wx''
+ rescue
+ raise no_wx_err
+ end
+end
+
+
+class GridFrame < Wx::Frame
+
+ def initialize(parent, id = -1, title = "MyFrame",
+ pos = Wx::DEFAULT_POSITION,
+...
2007 Apr 28
6
XRC Problem
...9;t know what the problem is,
as what I''m using, is wxGlade to develop my user interface, and it
creates all the controls in what looks like it should be fine, but it''s
not working. The simplest of my program is:
begin
require ''wx''
rescue LoadError => no_wx_err
begin
require ''rubygems''
require ''wx''
rescue LoadError
raise no_wx_err
end
end
module XrcEnabled
def getXrcControl(id)
return find_window_by_id( Wx::xrcid(id) )
end
end
class ContactList < Wx::Frame
inc...
2006 Dec 03
0
[778] trunk/wxruby2: Remove broken and deprecated LayoutConstraints, update samples & docs
...Constraints.rbw        2006-12-03 17:30:10 UTC (rev 778)
</span><span class="lines">@@ -1,114 +0,0 @@
</span><del>-#!/usr/bin/env ruby
-
-begin
- require ''wx''
-rescue LoadError => no_wx_err
- begin
- require ''rubygems''
- require ''wx''
- rescue LoadError
- raise no_wx_err
- end
-end
-
-class TestLayoutConstraints < Wx::Panel
- def initialize(parent)
- super(parent, -1)
- set_auto_layout(true)
- evt_button(100) {|...
2007 Jan 03
12
instalation problem
Hi
Im testing wxRuby. I have a problem when ruby try to load the load wx.
Im newbie to ruby, maybe a make a simple mistake :
Best regards.
Install wxRuby--------------------------------------------------------------
pedro@la-vaca-azul:~$ sudo gem install wxruby2-preview
Need to update 2 gems from http://gems.rubyforge.org
..
complete
Select which gem to install for your platform (i486-linux)
2006 Nov 06
3
HtmlWindow and friends
Hi
Attached is a patch to add HtmlWindow and some of its friends, including
HtmlEasyPrinting. Also a sample.
I haven''t tried exposing the parsing and rendering API yet to allow
custom tags etc - I just wanted to get basic HTML and the 0.6.0
compatibility classes first. There may well be some quite easy classes left.
There''s one ugly kludge to get OnOpeningURL to compile -
2006 Nov 12
0
[724] trunk/wxruby2: Initial commit of HtmlWindow functionality
...;/span><span class="lines">@@ -0,0 +1,238 @@
</span><ins>+#!/usr/bin/env ruby
+# wxRuby2 Sample Code. Copyright (c) 2004-2006 Kevin B. Smith
+# Freely reusable code: see SAMPLES-LICENSE.TXT for details
+
+begin
+ require ''wx''
+rescue LoadError => no_wx_err
+ begin
+ require ''rubygems''
+ require ''wx''
+ rescue LoadError
+ raise no_wx_err
+ end
+end
+
+require ''net/http''
+require ''uri''
+
+class MyHtmlWindow < Wx::HtmlWindow
+ attr_reader :html_src
+ def load_page_fr...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
.../span><span class="lines">@@ -0,0 +1,1351 @@
</span><ins>+#!/usr/bin/env ruby
+# wxRuby2 Sample Code. Copyright (c) 2004-2007 Kevin B. Smith
+# Freely reusable code: see SAMPLES-LICENSE.TXT for details
+
+begin
+ require ''wx''
+rescue LoadError => no_wx_err
+ begin
+ require ''rubygems''
+ load ''wx''
+ rescue
+ raise no_wx_err
+ end
+end
+
+# A resizable control that displays its current size, and, if an AUI
+# arrangement, its position and layer
+class SizeReportCtrl < Wx::Control
+ def initialize(par...