Displaying 20 results from an estimated 200 matches similar to: "My first wxRuby app doesn't work, please help!"
2007 Sep 10
2
syntax II
Hi
Given the warm response to the syntax additions in 1.9.1 I''m considering
moving one or two more syntax extensions into core, and would like your
thoughts. Last ones, I promise. Realise we don''t want much more API
change now, but also we''ll probably also have to live with whatever we
settle on for 2.0 for a little while, so...
1) Setting up event handlers
In
2006 Oct 21
3
wxsugar question
I''ve only had the briefest play with wxSugar and already I like it a lot.
One small question - have you considered some more ''convention over
configuration'' like they do in rails, in particular for event connectors?
So instead of
listen(:button, my_button, my_button_pressed)
you can leave it out entirely and rely on the convention that a button has
a _pressed
2007 Sep 17
7
Re : syntax II
Alex Fenton wrote :
>1) Setting up event handlers
>
>In most real apps, I think the most normal way to set up event handlers
>is for the event to be dealt with by a corresponding method. At the
>moment this has to be done using a block:
>
>evt_button(AN_ID) { on_button_click }
>evt_button(my_button.get_id) do | event |
> on_button_click(event)
>end
>evt_size { |
2007 Oct 23
6
wxRuby 1.9.2
I''m happy to announce that wxRuby 1.9.2 is now available from Rubyforge.
As usual we''ve got source and binary gems for Win32, OS X and Linux:
http://rubyforge.org/frs/?group_id=35
or
gem install wxruby
== WHAT''S NEW ==
This release has a mix of new syntax features, new classes, and lots of
minor fixes and additions
* New shorter syntax for event handlers
* New
2006 Sep 07
2
A little bit of sugar
Hi
Do a search on ''wxruby'' and you''ll see that people''s main gripes are 1)
stability 2) development progress 3) documentation and 4) syntax.
We''re making great progress on 1-3 so thought it seemed like a good time
to start looking at 4). So here''s announcing a first release of WxSugar.
It can be downloaded via gems (gem install wx_sugar)
2006 Dec 18
13
unit testing wxruby GUIs
paul.allton at uk.bnpparibas.com wrote:
> I''m a big fan of automated UI testing (i.e. driving the UI from some
robot API). I appreciate this
> is potentially a whole new project, but does wxwidgets provide a
method of clicking buttons,
> typing into components ... if so, would it be technically possible to
expose this in wxruby.
I like automated UI testing too, but
2004 Jun 11
9
Handling Events that don''t take an ID
Hey Kevin,
Am I correct in assuming that if I want a particular widget to respond to an
event which doesn''t take an ID as an argument (like evt_size or
evt_left_down), that I have to inherit a new widget and define the event
handler within the inherited class? Here''s a little contrived code example
to illustrate what I mean:
class MyCtrl < Wx::TextCtrl
def
2004 May 12
8
New tutorial added!
Hey guys,
It''s been awhile, but I''ve put up a new tutorial page on Wx::Frame. It''s
the first half of the tutorial on Frame, the rest will come a little later.
Let me know what you guys think. Any comments or criticisms are welcome.
Let me know what was good and what could have been better, so that future
tutorials will be able to incorporate those improvements.
2009 Jan 29
4
Help understanding EVERYTHING
Team,
I am trying to learn a GUI for Ruby and I picked wxRuby.
The problem is that I am kind of slow learning this and I now feel
frustrated after trying for about at least 7 hours.
I am trying to design a simple Sudoku 9x9 grid to display numbers, 1 - 9,
using buttons.
I posted a question on Ruby forum ruby-talk and a gentleman, Alex Fenton,
answered my questions.
Alex gave me what appear to be
2005 Aug 19
9
Patch for listbook.rb
Attached is a patch file for listbook.rb
1) Message box scrolls properly now
2) Blank lines are skipped when adding pizzas and ice cream
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Nov 02
11
xrcise tutorial, undefined method ''upper_bt''
Hi
I''m trying to follow the tutorial on xrcise at
http://wxruby.rubyforge.org/wiki/wiki.pl?UsingXRCise
But I keep getting the following error when I try to run the example;
tutorial.rb:21:in `initialize'': undefined method ''upper_bt'' for
#<CaseChangeFrame:0x2d610f8> (NoMethodError)
from tutorial.rb:28:in `new''
from
2010 Mar 20
1
Tab key traversal
Below is my attempt at changing the focus from one text control to the
next control after a person presses the tab key. The wxTE_PROCESS_TAB
style property has been selected for each of the controls. What
corrections do I have to make? Thanks.
#!/usr/bin/env ruby
require ''rubygems''
require ''wx''
require ''tp1.rb''
class MainFrame < TPSC
2008 May 03
3
what type of variable use? (setting text on another class va
so, i have a MinimalFrame class where i have a form, then, after a user
add a new client i would like to send a log message on MainFrame
status_bar.
--
Posted via http://www.ruby-forum.com/.
2004 Jun 19
4
FlexGridSizer question
=begin
I am trying to understand how FlexGridSizer works and I have written a small
test application using the latest wxRuby 0.4.0 on Win XP (Home).
I cannot get static text ''Week'', ''Day'' and ''Date'' line up above the OK button.
I have tried all combinations of ALIGN flags, but I either got the text sticking
far too close to the left edge of
2004 Aug 07
1
end_modal question
Really stupid question, but have you wrapped this all in an App class? If you don''t have a
wxApp subclass driving your applications then all sorts of badness would happen.
> I''m writing a custom little application for my boss''s high school
> football team to track there stats play by play.
>
> My problem is that when I start the application, it
2007 Oct 03
9
WxRuby Newbie Application Hanging
I have a WxRuby application that takes a few inputs from the user and
uses that information to search through a large file for matches. The
application works very well, with one exception. If I click anywhere
in the frame while the application is searching through the long file,
the application hangs. Has anyone experienced anything similar to
this? Any suggestions on how I can fix this?
Thanks
2019 Aug 05
0
samba dlz. bind9 nslookup is wrong
the patrikx3.com is my domain
my AD DC domain is p3x-dc.patrikx3.com, you can see:
root at server:~# cat /etc/bind/zones/enp1s0f3/patrikx3.com
; Replaces on ennp1s0f2 to ennp1s0f3
; 192.168.81. 192.168.78.
; 2001:470:1f1b:5b5:21b:21ff:fea6:ce92
2001:470:1f1b:5b3:21b:21ff:fea6:ce93
; format is done with xed Linux Mint, not using tab, only space
$TTL 3600
@
2011 Jan 12
0
[LLVMdev] Wrong assembly is written for x86_64 target in JIT without optimization?
On Jan 11, 2011, at 4:50 PMPST, Yuri wrote:
> When I try running one llvm function in JIT without optimization I get
> SEGV. Looking at assembly (below) I see that the local value
> 0xffffffffffffffe0(%rbp) is used without being ever initialized (see my
> comment in asm).
> Same code on i386 works fine, with and w/out optimization.
>
> My guess is that this is a bug in
2014 May 13
2
[LLVMdev] Missed optimization opportunity in 3-way integer comparison case
While looking at what llvm writes for this testcase, I noticed that
there is one redundant operation in resulting assembly. The second 'cmp'
operation there is essentially identical to the first one, with reversed
order of arguments. Therefore, it is not needed.
This testcase is a simple integer comparison routine, similar to what
qsort would take to sort an integer array.
I think
2010 Dec 02
2
Hmisc label function applied to data frame
Hello,
I'm attempting to create a data frame with correlations between every pair
of variables in a data frame, so that I can then sort by the value of the
correlation coefficient and see which pairs of variables are most strongly
correlated.
The sm2vec function in the corpcor library works very nicely as shown here:
library(Hmisc)
library(corpcor)
# Create example data
x1 = runif(50)
x2 =