Skip to content

Instantly share code, notes, and snippets.

@Xliff
Last active February 20, 2019 07:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xliff/395ac11d29c3e9640ac5c8ed552bde6d to your computer and use it in GitHub Desktop.
Save Xliff/395ac11d29c3e9640ac5c8ed552bde6d to your computer and use it in GitHub Desktop.
@Xliff
Copy link
Author

Xliff commented Feb 19, 2019

Script for the above screenie:

use v6.c;

use GTK::Raw::Types;

use GTK::Application;
use GTK::ScrolledWindow;
use GTKSheet;

my $a = GTK::Application.new( title => 'org.genex.basic_sheet' );
$a.activate.tap({
  my $sw = GTK::ScrolledWindow.new_with_policy(
    GTK_POLICY_ALWAYS, GTK_POLICY_AUTOMATIC
  );
  my $s = GTKSheet.new(10, 10, 'Sample');

  $sw.add($s);
  $a.window.destroy-signal.tap({ $a.exit });
  $a.window.add($sw);
  $a.window.show_all;
});

$a.run;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment