source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/combobox.rb
Ruby
mit
177
master
18,282
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin require_relative './itemcontainer' module Widgets module ComboBox class ComboBoxPage < ItemContainer::Page mod...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/static.rb
Ruby
mit
177
master
15,824
# Copyright (c) 2023 M.J.N. Corino = self.next_id The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module Static class StaticPage < Widgets::Page module ID HAlign_Left = 0 ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/odcombobox.rb
Ruby
mit
177
master
21,543
# Copyright (c) 2023 M.J.N. Corino = self.next_id The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin require_relative './itemcontainer' module Widgets module ODCombobox class ODComboboxPage < ItemContaine...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/slider.rb
Ruby
mit
177
master
20,286
# Copyright (c) 2023 M.J.N. Corino = self.next_id The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module Slider class SliderPage < Widgets::Page module ID include Wx::IDHel...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/datepick.rb
Ruby
mit
177
master
6,790
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin require 'date' module Widgets module DatePicker class DatePickerPage < Widgets::Page module ID include...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/filepicker.rb
Ruby
mit
177
master
7,285
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin require 'date' module Widgets module FilePicker class FilePickerPage < Widgets::Page module ID include...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/radiobox.rb
Ruby
mit
177
master
11,153
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module Radio class RadioPage < Widgets::Page module ID include Wx::IDHelper Res...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/timepick.rb
Ruby
mit
177
master
4,067
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin require 'date' module Widgets module TimePicker class TimePickerPage < Widgets::Page module ID include...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/spinbtn.rb
Ruby
mit
177
master
14,861
# Copyright (c) 2023 M.J.N. Corino = self.next_id The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module SpinBtn class SpinBtnPage < Widgets::Page module ID include Wx::IDH...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/headerctrl.rb
Ruby
mit
177
master
9,744
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module HeaderCtrl class HeaderCtrlPage < Widgets::Page NUMBER_OF_COLUMNS = 4 COL_ALIGNMEN...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/dirctrl.rb
Ruby
mit
177
master
8,686
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin require 'date' module Widgets module DirCtrl class DirCtrlPage < Widgets::Page module ID include Wx::I...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/dirpicker.rb
Ruby
mit
177
master
5,065
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin require 'date' module Widgets module DirPicker class DirPickerPage < Widgets::Page module ID include W...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/activityindicator.rb
Ruby
mit
177
master
2,714
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module ActivityIndicator class ActivityIndicatorPage < Widgets::Page module ID include W...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/fontpicker.rb
Ruby
mit
177
master
4,242
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin require 'date' module Widgets module FontPicker class FontPickerPage < Widgets::Page module ID include...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/hyperlink.rb
Ruby
mit
177
master
7,195
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module Hyperlink class HyperlinkPage < Widgets::Page module ID include Wx::IDHelper ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/clrpicker.rb
Ruby
mit
177
master
4,813
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module ColourPicker class ColourPickerPage < Widgets::Page module ID include Wx::IDHelpe...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/choice.rb
Ruby
mit
177
master
8,924
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin require_relative './itemcontainer' module Widgets module Choice class ChoicePage < ItemContainer::Page module ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/itemcontainer.rb
Ruby
mit
177
master
4,978
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module ItemContainer class Page < Widgets::Page # Help track client data objects in wxItemContai...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/gauge.rb
Ruby
mit
177
master
9,420
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module Gauge class GaugePage < Widgets::Page module ID include Wx::IDHelper Res...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/listbox.rb
Ruby
mit
177
master
16,588
# Copyright (c) 2023 M.J.N. Corino = self.next_id The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin require_relative './itemcontainer' module Widgets module ListBox class ListBoxPage < ItemContainer::Pag...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/toggle.rb
Ruby
mit
177
master
13,535
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module Toggle class TogglePage < Widgets::Page module ID include Wx::IDHelper R...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/notebook.rb
Ruby
mit
177
master
14,921
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module Book class BookPage < Widgets::Page module ID include Wx::IDHelper Reset...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/searchctrl.rb
Ruby
mit
177
master
4,601
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module SearchCtrl class SearchCtrlPage < Widgets::Page module ID include Wx::IDHelper ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/widgets.rb
Ruby
mit
177
master
38,560
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin require 'wx' module Widgets if Wx.has_feature?(:USE_TREEBOOK) BookCtrl = Wx::Treebook elsif Wx.has_feature?(:USE_NOT...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/aui/aui.rb
Ruby
mit
177
master
54,288
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module AuiTest # A resizable control that displays its cu...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/printing/printing.rb
Ruby
mit
177
master
14,500
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module Printing WXPRINT_QUIT = Wx::ID_EXIT WXPRINT_PRIN...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/printing/printing2.rb
Ruby
mit
177
master
8,314
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # wxRuby3 Sample Code. (converted from wxPython/Phoenix printing.py example) ### require 'wx' modul...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/scrolling/htlbox.rb
Ruby
mit
177
master
13,003
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license ### require 'wx' module HTLBox # to use Wx::HtmlListBox you must derive a new class from it as y...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/scrolling/scrollwin.rb
Ruby
mit
177
master
4,380
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' # Example demonstrating the use of Wx::ScrolledWindow and th...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/scrolling/varscroll.rb
Ruby
mit
177
master
11,019
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets vscroll sample # Copyright (c) 2001 Vadim Zeitlin require 'wx' # Example demonstrating the use of Wx::VScrolledWindow, Wx::HScrolledWindow and # Wx::HVScrolledWindow module V...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/controls/get_item_sample.rb
Ruby
mit
177
master
3,628
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Written by Nobuaki Arima # Adapted for wxRuby3 ### require 'wx' module GIS class ListctrlFrame...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/dragdrop/dragdrop.rb
Ruby
mit
177
master
6,223
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module DragDrop # This sample demonstrates the use of the...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/minimal/minimal.rb
Ruby
mit
177
master
3,238
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' # This sample shows a fairly minimal Wx::App using a Frame, ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/minimal/nothing.rb
Ruby
mit
177
master
927
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module EmptySample include WxRuby::Sample if defined? WxR...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/splash/splash.rb
Ruby
mit
177
master
5,676
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. ### require 'wx' module Splash class MyFrame < Wx::Frame def initialize(title) # The main application frame has no parent (nil) super(nil, :title => title, :size => [ 400, 300 ]) @isPda ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/event/threaded.rb
Ruby
mit
177
master
12,853
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' # This simple sample demonstrates how to use Ruby (green) th...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/event/event.rb
Ruby
mit
177
master
7,125
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' # This sample demonstrates how to dynamically connect and di...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/event/activation.rb
Ruby
mit
177
master
3,870
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' # This sample demonstrates the use of Activate Events. These...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/event/update_ui_event.rb
Ruby
mit
177
master
3,289
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module UpdateUIEvent # Demonstrating the use of evt_updat...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/dialogs/dialogs.rb
Ruby
mit
177
master
34,355
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module Dialogs DIALOGS_CHOOSE_COLOUR = 1 DIALOGS_CHOOSE...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/dialogs/wizard.rb
Ruby
mit
177
master
2,550
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module Wizard class MyFrame < Wx::Frame def initializ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_exceptions.rb
Ruby
mit
177
master
1,478
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxrb_test' require 'plat4m' require 'open3' class DirectorExceptionTests < Minitest::Test # Path to the currently running Ruby program RUBY = ENV["RUBY"] || File.join( RbConfig::CO...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_combo_ctrl.rb
Ruby
mit
177
master
4,815
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' require_relative './lib/text_entry_tests' class ComboCtrlCtrlTests < WxRuby::Test::GUITests include TextEntryTests class LVComboPopup < Wx::ListView include Wx::C...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_window.rb
Ruby
mit
177
master
7,710
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class WindowTests < WxRuby::Test::GUITests def setup super @window = Wx::Window.new(frame_win) end def teardown frame_win.destroy_children @window = ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_menu.rb
Ruby
mit
177
master
4,772
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class MenuTests < WxRuby::Test::GUITests def setup super @menu = Wx::Menu.new @menu.append(Wx::ID_HIGHEST+1, 'Item 1', 'Test menuitem 1') @menu.append(Wx:...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_webview.rb
Ruby
mit
177
master
20,585
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' require 'json' require 'date' if Wx.has_feature?(:USE_WEBVIEW) class TestWeb < WxRuby::Test::Unit def test_constants assert_not_nil Wx::WEB::WEBVIEW_ZOOM_TINY ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_std_controls.rb
Ruby
mit
177
master
11,821
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' require_relative './lib/text_entry_tests' require_relative './lib/item_container_tests' class ButtonTests < WxRuby::Test::GUITests def setup super @button = Wx::B...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_events.rb
Ruby
mit
177
master
1,706
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class EventTests < WxRuby::Test::Unit def test_event evt = Wx::Event.new(100, 1) assert_equal(100, evt.event_type) assert_equal(1, evt.id) assert(!evt.shoul...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_font.rb
Ruby
mit
177
master
8,123
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class FontTests < WxRuby::Test::Unit def get_test_fonts [ Wx::Font.new(Wx::NORMAL_FONT), Wx::Font.new(Wx::SMALL_FONT), Wx::Font.new(Wx::ITALIC_FONT), ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_grid_sizer.rb
Ruby
mit
177
master
5,075
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class GridSizerTests < WxRuby::Test::GUITests def setup super @win = Wx::Window.new(frame_win, Wx::ID_ANY) @win.set_client_size(127, 35) @sizer = Wx::Grid...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_help.rb
Ruby
mit
177
master
2,594
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' if Wx.has_feature?(:USE_HELP) class TestHelp < WxRuby::Test::GUITests class << self def hlp_initialised @hlp_initialized ||= false end de...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_proof_check.rb
Ruby
mit
177
master
1,661
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class MultilineProofCheckTests < WxRuby::Test::GUITests def setup super @text = Wx::TextCtrl.new(frame_win, name: 'Text', style: Wx::TE_MULTILINE|Wx::TE_RICH|Wx::...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_tree_ctrl.rb
Ruby
mit
177
master
3,549
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class TreeCtrlTests < WxRuby::Test::GUITests def setup super @tree = Wx::TreeCtrl.new(frame_win, name: 'TreeCtrl') end def teardown @tree.destroy sup...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_media_ctrl.rb
Ruby
mit
177
master
1,097
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' # test seems to deadlock for WXGTK if Wx.has_feature?(:USE_MEDIACTRL) require 'uri' class MediaCtrlTests < WxRuby::Test::GUITests def setup super @media_loaded ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_clipboard.rb
Ruby
mit
177
master
9,568
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class TestTextData < WxRuby::Test::Unit # Using an in-built class def test_text_data td = Wx::TextDataObject.new('WXRUBY') assert_equal("WXRUBY", td.text) Wx:...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_item_data.rb
Ruby
mit
177
master
7,230
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class CtrlContainerFrame < Wx::Frame attr_accessor :control def initialize(ctrl_class, *args) super(nil, -1, 'Test ' + ctrl_class.name) self.control = ctrl_class.n...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_aui.rb
Ruby
mit
177
master
2,094
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class Issue141Test < WxRuby::Test::GUITests class AUIFrame < Wx::Frame def initialize(parent, id=Wx::ID_ANY, title="Ruby Test Dialog", pos=Wx::DEF...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_styled_text_ctrl.rb
Ruby
mit
177
master
1,011
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class StyledTextCtrlTests < WxRuby::Test::GUITests def setup super @text = Wx::STC::StyledTextCtrl.new(frame_win, name: 'StyledText') end def teardown @t...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_app_init_exception.rb
Ruby
mit
177
master
392
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxrb_test' require 'wx' class AppInitExitExceptions < Minitest::Test class TestApp < Wx::App def on_init raise RuntimeError, 'on_init exception' end end def test_on_in...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_app_traits.rb
Ruby
mit
177
master
1,121
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class AppTraitsTests < WxRuby::Test::Unit def test_traits 10.times do traits = Wx.get_app.get_traits assert_not_nil(traits) assert_kind_of(Wx::AppTrai...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_gdi_object.rb
Ruby
mit
177
master
4,401
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class TestGDIObjects < WxRuby::Test::Unit def test_icon ico = Wx::Icon(:sample3) assert(ico.ok?) frame = Wx::Frame.new(nil) frame.set_icon(ico) GC.start...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_variant.rb
Ruby
mit
177
master
4,398
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class TestVariant < WxRuby::Test::Unit def test_basics var = Wx::Variant.new('text variant') assert_equal('text variant', var.get_string) var = Wx::Variant.new(...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_shared_event_handler.rb
Ruby
mit
177
master
4,262
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class TestEvent < Wx::RT::ThreadEvent EVT_TEST_EVENT = Wx::EvtHandler.register_class(TestEvent, nil, 'evt_test_event', 0) def initialize(id=0) super(EVT_TEST_EVENT,...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/testapp_noframe.rb
Ruby
mit
177
master
610
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxrb_test' require 'wx' class AppReturnsFalseFromInit < Wx::App attr_reader :did_call_on_init, :the_app_name def on_init @did_call_on_init = true @the_app_name ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_file_dialog.rb
Ruby
mit
177
master
1,288
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class FileDialogTests < WxRuby::Test::Unit def dialog_tester(dlg, rc=Wx::ID_OK) if is_gtk? timer = Wx::Timer.new(dlg) dlg.evt_timer(timer) { dlg.end_modal(r...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_validators.rb
Ruby
mit
177
master
22,547
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class ValidatorTests < WxRuby::Test::GUITests def setup super @text = Wx::TextCtrl.new(frame_win, name: 'Text') end def teardown @text.destroy if @text ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_ext_controls.rb
Ruby
mit
177
master
6,577
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' require_relative './lib/text_entry_tests' class SearchCtrlTests < WxRuby::Test::GUITests include TextEntryTests def setup super @search = Wx::SearchCtrl.new(fr...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_propgrid.rb
Ruby
mit
177
master
39,352
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class PropGridTests < WxRuby::Test::GUITests def populate_with_standard_items(pgman) pg = pgman.get_page("Standard Items") # Append is ideal way to add items to ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_richtext.rb
Ruby
mit
177
master
7,040
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class RichTextCtrlTextTests < WxRuby::Test::GUITests def setup super @richtext = Wx::RTC::RichTextCtrl.new(frame_win, name: 'RichText') end def teardown ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_art.rb
Ruby
mit
177
master
3,525
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class TestArt < WxRuby::Test::Unit def test_icons icons = [] assert_nothing_raised do icons << Wx.Icon(:sample) icons << Wx.Icon(:sample2) icons <...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_config.rb
Ruby
mit
177
master
10,346
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class TestConfig < WxRuby::Test::Unit DEMO_CONFIG = { 'RootEntry1' => 'This is a string value', 'RootEntry2' => true, 'RootEntry3' => 101, 'RootEntry4' => 3...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_geometry.rb
Ruby
mit
177
master
6,534
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxrb_test' require 'wx' class GeometryTests < Minitest::Test def test_size sz = Wx::Size.new(10, 20) assert_equal(10, sz.width) assert_equal(20, sz.height) w, h = sz ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_sizer.rb
Ruby
mit
177
master
3,081
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class SizerTests < WxRuby::Test::GUITests def setup super frame_win.set_sizer(Wx::VBoxSizer.new) end def teardown super GC.start end def test_de...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_dialog.rb
Ruby
mit
177
master
2,040
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class DialogTests < WxRuby::Test::Unit class TestDialog < Wx::Dialog def initialize super() end end def test_dialog_inheritance dlg = TestDialog.new ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_grid_ctrl.rb
Ruby
mit
177
master
4,331
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class GridCtrlTests < WxRuby::Test::GUITests class MyTextCellEditor < Wx::GRID::GridCellTextEditor def apply_edit(row, col, grid) grid.set_cell_value(row, col,...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_list_ctrl.rb
Ruby
mit
177
master
1,370
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class ListCtrlTests < WxRuby::Test::GUITests def setup super @list = Wx::ListCtrl.new(frame_win) @list.set_window_style(Wx::LC_REPORT | Wx::LC_EDIT_LABELS) ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_secret_store.rb
Ruby
mit
177
master
3,106
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' require 'digest' class TestSecretStore < WxRuby::Test::Unit unless is_ci_build? def test_store if Wx.has_feature?(:USE_SECRETSTORE) state, err = Wx::SecretSto...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_event_handling.rb
Ruby
mit
177
master
11,203
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class EventHandlingTests < WxRuby::Test::Unit class TestEvent < Wx::Event EVT_TEST_EVENT = Wx::EvtHandler.register_class(self, nil, 'evt_test_event', 0) def initial...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_pg.rb
Ruby
mit
177
master
813
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class PGChoicesTests < WxRuby::Test::GUITests def test_enum_labels texts = %w[Red Blue Green Yellow Black White] choices = Wx::PG::PGChoices.new(texts) GC.sta...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_art_provider.rb
Ruby
mit
177
master
1,386
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class TestArtProvider < WxRuby::Test::Unit class MyArtProvider < Wx::ArtProvider class << self def is_called? !!@called end def set_called(f ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_log.rb
Ruby
mit
177
master
6,748
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class LogTests < WxRuby::Test::Unit class TestLogBase < Wx::Log def initialize super @logs = ::Array.new(Wx::LOG_Trace + 1) @logsInfo = ::Array.new(W...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_intl.rb
Ruby
mit
177
master
3,645
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class TestInternationalisation < WxRuby::Test::Unit def test_encodings default = Wx::Font.get_default_encoding assert_kind_of(Wx::FontEncoding, default) assert_k...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_app_event_filter.rb
Ruby
mit
177
master
1,759
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class AppEventFilterTests < WxRuby::Test::Unit class TestEvent < Wx::Event EVT_TEST_EVENT = Wx::EvtHandler.register_class(self, nil, 'evt_test_event', 0) def initia...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/testapp.rb
Ruby
mit
177
master
705
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxrb_test' require 'wx' class TestingFrame < Wx::Frame def initialize super(nil, -1, '') evt_paint { on_paint } end def on_paint paint {} close ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_box_sizer.rb
Ruby
mit
177
master
5,545
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class BoxSizerTests < WxRuby::Test::GUITests def setup super @win = Wx::Window.new(frame_win, Wx::ID_ANY) @sizer = Wx::HBoxSizer.new @win.set_client_size(...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_app_exit_exception.rb
Ruby
mit
177
master
600
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxrb_test' require 'wx' class TestApp < Minitest::Test class TestFrame < Wx::Frame def initialize super(nil, -1, '') evt_paint { on_paint } end def on_paint ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_basic.rb
Ruby
mit
177
master
594
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxrb_test' require 'wx' class BasicTests < Minitest::Test def test_versions assert_equal(Wx::WXRUBY_VERSION, "#{Wx::WXRUBY_MAJOR}.#{Wx::WXRUBY_MINOR}.#{Wx::WXRUBY_RELEASE}#{Wx::WXRUB...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_persistence.rb
Ruby
mit
177
master
3,513
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class TopLevelPersistenceTests < WxRuby::Test::GUITests PERSIST_ROOT = 'Persistent_Options' def run_frame_props_tests Wx.persistent_register_and_restore(frame_win,...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_dc.rb
Ruby
mit
177
master
1,913
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class TestDC < WxRuby::Test::Unit def test_memory_dc bmp = Wx::Bitmap.new(100, 100) assert_nothing_raised do Wx::MemoryDC.draw_on(bmp) do |mdc| mdc.se...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_timer.rb
Ruby
mit
177
master
1,824
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxapp_runner' class TimerTests < WxRuby::Test::Unit class TimerCounterHandler < Wx::EvtHandler def initialize super @count = 0 evt_timer Wx::ID_ANY, :on_timer ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/test_book_controls.rb
Ruby
mit
177
master
681
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './lib/wxframe_runner' class BookCtrlTests < WxRuby::Test::GUITests def setup super @book = Wx::Choicebook.new(frame_win, name: 'ChoiceBook') end def teardown @book.destroy ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/lib/leaked_overload_exception_test.rb
Ruby
mit
177
master
563
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './wxframe_runner' class DirectorOverloadExceptionTests < WxRuby::Test::GUITests class ExceptionSizer < Wx::BoxSizer def calc_min raise RuntimeError, 'AnyThing' end end def...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/lib/item_container_tests.rb
Ruby
mit
177
master
2,467
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. module ItemContainerTests def test_ic_append container.append("item 0") assert_equal("item 0", container.get_string(0)) container.append(['item 1', 'item 2']) assert_equal("item 1", container....
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/lib/leaked_process_event_exception_test.rb
Ruby
mit
177
master
700
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './wxapp_runner' class ProcessEventHandlingExceptionTests < WxRuby::Test::Unit class TestEvent < Wx::Event EVT_TEST_EVENT = Wx::EvtHandler.register_class(self, nil, 'evt_test_event', 0) ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/lib/wxframe_runner.rb
Ruby
mit
177
master
6,435
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './wxapp_runner' module WxRuby module Test class App < Wx::App Assert = Struct.new(:file, :line, :func, :condition, :message) class AssertFailureSink def initialize ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/lib/leaked_queued_event_exception_test.rb
Ruby
mit
177
master
716
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './wxapp_runner' class QueuedEventHandlingExceptionTests < WxRuby::Test::Unit class TestEvent < Wx::Event EVT_TEST_EVENT = Wx::EvtHandler.register_class(self, nil, 'evt_test_event', 0) ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/lib/text_entry_tests.rb
Ruby
mit
177
master
1,917
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. module TextEntryTests def test_te_set_value text_entry.set_focus # removes the 'Hint' test which in GTK2 causes problems assert(text_entry.empty?) text_entry.value = 'foo' assert_equal('foo', te...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/lib/wxapp_runner.rb
Ruby
mit
177
master
1,931
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './wxrb_test' require 'wx' module WxRuby module Test class App < Wx::App def initialize(test_runner, start_mtd, *args, **kwargs) super() @test_runner = test_runner ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/lib/overload_type_exception_test.rb
Ruby
mit
177
master
572
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require_relative './wxframe_runner' class DirectorTypeExceptionTests < WxRuby::Test::GUITests class InvalidOutputSizer < Wx::BoxSizer def calc_min nil #Wx::Point.new(1,1) # expects Wx::Size end ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
tests/lib/wxrb_test.rb
Ruby
mit
177
master
1,442
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. require 'minitest' require 'minitest/autorun' module Minitest module Assertions alias :assert_block :assert alias :assert_raise :assert_raises def assert_nothing_raised(&block) yield en...