Displaying 20 results from an estimated 2000 matches similar to: "No joy from Wx::App.dispatch, Wx::App.yield..."
2007 Dec 30
4
Drawing thread not getting enough time from scheduler?
Need some assistance with animation again... When I run the drawing
code in a separate thread, it''s slow as heck. I think it may be
because the drawing thread isn''t getting enough time from the thread
scheduler.
I was able to reproduce the problem in my little sample program simply
by increasing the number of lines it draws per update. I''m lucky to
get one frame
2007 Dec 01
5
Tearing in my buffered animation test script...
OK, I have a basic blit demo working (thanks to Alex Fenton for his
reply, which I finally saw).
However, there''s a great deal of "tearing" on the screen - flickering
grey lines in the black background. It looks like the blit isn''t
always complete when the screen refreshes.
Can anyone look at this and tell me what I might be doing wrong? Any
help would be most
2008 Jan 25
2
"undefined symbol" with wxRuby gem on Fedora Core 5...
I''m trying to test on platforms other than Windows, starting with my
Fedora Core 5 box. I''m getting this error when trying to run the
Hello World script
(http://wxruby.rubyforge.org/wiki/wiki.pl?Hello_World):
undefined symbol: gtk_widget_is_composited -
/usr/local/lib/ruby/gems/1.8/gems/wxruby-1.9.4-x86-
linux/lib/wxruby2.so (LoadError)
This happens with both the
2005 May 03
4
Wx::HtmlWindow.on_link_clicked
Hello, wxruby-users.
This is an addition which implement wrapper for
overloading wxHtmlWindow::OnLinkClicked method. Unfortunately, it was
impossible to make it correctly without ugly hack to wxpp.rb, but i`m
hope it does not broke it.
Please look at attachment for a patch for htmlwindow.t and wxpp.rb and
additional file htmllinkinfo.t (need to be added to $objs array in
extconf.rb).
Sample
2007 Oct 04
1
wxRuby: MemoryDC problems...
I''m trying to put together a quick test of buffered animation with
WxRuby, but I''m encountering a fair amount of trouble... I''m drawing
to a Wx::Bitmap first, then using Wx::DC#draw_bitmap to copy it to a
Wx::Window. But I get the following error:
C:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.1-i386-mswin32/lib/wx/classes/bitmap.rb:18:in
`draw'': uninitialized
2020 Apr 07
0
when virEventAddTimeout trigger timeout ,should in the callback call virConnectDomainEventDeregisterAny ?
hi, all
I do a hotplug detach a network in a thread, because virDomainDetachDeviceFlags maybe asynchronous, so I do like follow:
cb_para->cluster_id = info->cluster_id;
cb_para->group_id = info->group_id;
cb_para->vsys_id = info->vsysid;
cb_para->vnf_id = info->vnf_id;
cb_para->conn = conn;
cb_para->time_out = 20*1000;//20s
2007 Dec 27
1
Wx::SplashScreen, and events
I have the following code:
#time = 7000
class TimeSplash < Wx::SplashScreen
PATH_MAIN = 1
PATH_SETUP = 0
def initialize(time, path=PATH_MAIN)
splash_bitmap = Wx::Bitmap.new(''timefly.png'', Wx::BITMAP_TYPE_PNG)
super(splash_bitmap,
Wx::SPLASH_CENTRE_ON_SCREEN|Wx::SPLASH_TIMEOUT, time, nil, -1)
evt_close() {|evt| on_close_window(evt, path)}
end
2008 Mar 13
0
Equivalent to before(:all) for StepGroups?
I have a helper object that I''d like to have available inside each of
my story steps, but would like to declare it *outside* all the steps.
(It knows how to create various objects in my library, then stores a
string reference to it for later steps to refer to.)
Problem is, I''ve tried assigning to a module variable both inside and
outside my steps_for block, and I get an error
2006 Sep 12
1
wx/wx.h
We include wx/wx.h in a lot of places. It seems from a (very) cursory
examination that the current method is to include wx/wxprec.h. Seems to
work fine including wx/wx.h so this may be entirely a non-issue. Does
anyone have any feelings on this?
Roy
2007 Dec 28
1
Wx:Wizard, Wx::WizardPageSimple
Ok, here is my class:
#====================================
class SetupWizard < Wx::Wizard
def initialize(timefly, title)
setup_image = Wx::Bitmap.new("wizard_side.png", Wx::BITMAP_TYPE_PNG)
super(nil, -1, title, setup_image)
@timefly = timefly
step_one = Wx::WizardPageSimple.new()
setup_page_one(step_one)
step_two = Wx::WizardPageSimple.new(nil,
2009 Dec 11
2
Closing event on a Notebook page.
How do I catch a closing event for a Notebook page.
I have added a number of pages (class Panel) to a Notebook and I
can remove them via the default close button on the pane.
But I what to run some code before the page(Panel) is closed,
so I assumed that it gets a ''evt_close'', but that seems not to be
the case.
How do I get to run some code before the page(Panel) closes?
2005 Jul 26
3
Wx::Html* widgets
Hello,
I''m having problems using the widgets Wx::Http*, such as
Wx::HtmlWindow, Wx::HtmlEasyPrinting, etc..
The error I got is "uninitialized constant Wx::HtmlWindow". The code
is correct since I''m trying to execute samples in the html/ directory.
All other samples work. I can''t even see that widgets doing
require ''wxruby'';
2007 May 19
1
Wx::FileDialog Styles are not working
The Constants for the Styles for FileDialog are not initialized to a value
and the class will not work without those, the Dialog will come up when you
call the show_modal method but the filenames are not showing up
I specifically need the values for
FD_OPEN
FD_SAVE
FD_OVERWRITE_PROMPT
FD_FILE_MUST_EXIST
but if I can''t get those then I''ll find a workaround
so far this has
2010 Sep 09
1
Wx::Grid and motion events, bug?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi there,
Doesn''t a Wx::Grid get motion events sent? This code demonstrates the
problem:
- --------------------------------------------------------------
#!/usr/bin/env ruby
#Encoding: UTF-8
require "wx"
class MyFrame < Wx::Frame
include Wx
def initialize(parent = nil)
super(parent, title: "Test", size:
2005 Nov 25
2
Wx::SystemSettings mark II
hi
patches and files for Wx::SystemSettings, with get_font included in swig
file and a sample that doesn''t segfault wxruby.
CVS patches: RubyConstants.i, type_map.i
CVS new: system_settings.rb (sample) SystemSettings.i (SWIG file)
The sample should allow you to view the available information about
system colours, fonts and metrics (eg cursor size, display size) in a Grid.
2008 Oct 13
2
Wx::Bitmap causes segfaults
Instantiating a Wx::Bitmap with width and height causes a segmentation
fault. This is the minimal example I could find where the behaviour is
exhibited:
require ''rubygems''
require ''wx''
Wx::Bitmap.new(1, 1)
Results in:
/usr/lib/ruby/gems/1.8/gems/wxruby-1.9.8-x86-linux/lib/wx/classes/bitmap.rb:17:
[BUG] Segmentation fault
ruby 1.8.6 (2007-09-24) [i486-linux]
2009 Sep 05
5
Filling Wx::ListCtrl with contents
Hi all,
I''ve got a question concerning ListCtrl_virtual of wxRuby since I see no
way filling the list with dynamic contents. I''m new to Ruby so I maybe
have to apologise for my request.
The problem is, that I have to define the on_get_item_text(item, col)
function. There I would like to use the item and col variables to read
data from a two-dimensional array. My very problem
2007 Jul 25
11
taskbaricon
Salut alex, j''ai un petit souci.
quand j''utilise "demotaskbaricon" avec traducteur-wxruby, que j''ouvre mon application(donc l''icone apparaƮt dans la barre de lancement rapide) et que je ferme mon application, l''icone disparaƮt tout de suite.
Mais quand je l''utilise avec l''exemple Wizard et que je ferme mon application
2007 Nov 07
1
Wx::FileDialog and common dialogs
The documentation for Wx::FileDialog is incorrectly generated:
http://wxruby.rubyforge.org/doc/filedialog.html
Every time the ''*'' (for the wildcard character in file filters) appears,
the doc instead switches between boldface and normal.
Also, it seems like the links under "See also" are broken.
Feature request:
Regarding all modal common dialogs (ColourDialog,
2007 Jan 17
3
Fedora 6 -- can''t load wx
Hi,
I''ve installed and used wxRuby on Win32, and am
trying to install it on Linux for the first time.
I''m running Fedora Core 6. Here is what I have
installed, but as shown below, when I try to
load wx, I''m told it cannot be loaded.
I get the same error when trying to run some
of the sample wxruby scripts. Sorry for the
newbie question, but am I missing something