Giter Site home page Giter Site logo

pygtk_ohp_app's Introduction

suke pysukeban (a.k.a. pygtk_ohp_app) Build Status build_mac build_win build_linux flake8

日本語

Demo

windows10

ubuntu18.04 ubuntu19.10 ubuntu20.04

Raspbian9

Platforms

pysukeban Runs on following environmnent.

How to use

Setup

  1. To install required libraries, open terminal and execute following command line.

    sh setup.sh

If you run on raspberry pi

  1. add X11 configuration. add following lines to /etc/X11/vncserver-virtual.conf file.

    Section "Extensions"
      Option "Composite" "Enable"
    EndSection
    
  2. restart raspberry pi.

    sudo reboot
  3. Run following command on raspberry pi to support transparent window.

    xcompmgr -c &

Run

  1. Run

    ./bin/gtk3_ohp.py

A transparent window with red frame will be displayed. You can draw figure with your mouse or pen.

Operations

Key bindings

  • Basics
Operation Key
Undo Ctrl-z, Command-z
Redo Ctrl-y, Command-y
Paste image Ctrl-v, Command-v
Delete all Ctrl-d, Command-d
Minimize, maximize window Ctrl-f or Command-f
  • Page operations
Operation Key
Next page Ctrl-n
Command-n
Ctrl-tab
Command-tab
Previous page Ctrl-p
Command-p
Ctrl-Shift-tab
Command-Shift-tab
Insert a page after Ctrl-Shift-n
Command-Shift-n
Ctrl-t
Command-t
Insert a page before Ctrl-Shift-p
Command-Shift-p
Move to Nth page Ctrl-{0-9}, Command-{0-9}
  • change current text, line color
Color Key
Red Shift-r
Navy Shift-n
Green Shift-g
Pink Shift-p
Black Shift-b
White Shift-w
Yellow Shift-y
Purple(Murasaki in Japanese) Shift-m
Orange Shift-o
Aqua Shift-a

width of line and font size : 1 - 9 key

Command line options

  • --foreground-color pen, text color (comma separated three values between 0 and 1.0. default 0,1,0)
  • --background-color background color (comma separated three values between 0 and 1.0. default 1,1,1)
  • --opaque use opaque background color. (default transparent)
  • --line-width width of pen (default 5)
  • --font font name

References

Licenes

   Copyright (C) 2020-2021 Takashi Masuyama

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

Takashi Masuyama < [email protected] > https://mamewo.ddo.jp/

pygtk_ohp_app's People

Contributors

mamewotoko avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.