Created
July 23, 2022 18:15
-
-
Save mwicat/852c966faefd3ef26b1d2d89aac67e55 to your computer and use it in GitHub Desktop.
reaper fltk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
sys.path.append('/Users/mwicat/tmp/mylib') | |
from fltk import * | |
import time | |
last_redraw = None | |
redraw_ival = 1/60. | |
class App: | |
def theCancelButtonCallback(self, ptr): | |
RPR_ShowMessageBox("czesc", "tytul", 0) | |
def __init__(self): | |
self.window = window = Fl_Window(100,100,400,200) | |
window.label(sys.argv[0]) | |
window.set_non_modal() | |
self.replace_find = Fl_Input(50, 10, 210, 25, "Find:") | |
self.button = button = Fl_Button(9,50,180,50) | |
button.label("Hello World") | |
button.callback(self.theCancelButtonCallback) | |
window.resizable() | |
window.end() | |
window.resizable(window) | |
window.show(len(sys.argv), sys.argv) | |
app = App() | |
def loop(app): | |
if Fl.check() > 0: | |
RPR_defer("loop(app)") | |
RPR_defer("loop(app)") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment