User Tools

Site Tools


simple_input_example
import clr
clr.AddReference ('System.Windows.Forms')
clr.AddReference('System.Drawing')

from System.Drawing import Point
from System.Windows.Forms import TextBox, Keys, KeyPressEventHandler

from System.Windows import Forms

class MyMainForm(Forms.Form):
    def __init__(self):
        self.Width = 300
        self.Height = 200
        self.Text = 'Main Form'
        my_button = Forms.Button(Text='Go!')
        my_button.Click += self.MyOnClick
        my_button.Location = Point(25, 95)
        self.Controls.Add(my_button)
        
        self.textbox = TextBox()
        self.textbox.Text = "0"
        self.textbox.Location = Point(25, 75)
        self.textbox.Width = 150
        #self.textbox.KeyDown += self.OnEnter
        self.textbox.KeyPress += KeyPressEventHandler(self.OnEnter)
        self.Controls.Add(self.textbox)
        
    def MyOnClick(self, *args):
        self.Finished()
    
    def OnEnter(self, e, args):
        key = args.KeyChar
        if key == Keys.Enter:
            self.Finished()
            
    def Finished(self):
        Misc.SendMessage("Answer was: {}".format(self.textbox.Text))
        self.Close()

app = MyMainForm()
Forms.Application.Run(app)
simple_input_example.txt · Last modified: 2025/02/25 22:20 by 127.0.0.1

Exception: Git command failed to perform periodic pull: hint: Pulling without specifying how to reconcile divergent branches is hint: discouraged. You can squelch this message by running one of the following hint: commands sometime before your next pull: hint: hint: git config pull.rebase false # merge (the default strategy) hint: git config pull.rebase true # rebase hint: git config pull.ff only # fast-forward only hint: hint: You can replace "git config" with "git config --global" to set a default hint: preference for all repositories. You can also pass --rebase, --no-rebase, hint: or --ff-only on the command line to override the configured default per hint: invocation. Warning: Permanently added 'github.com,140.82.112.3' (ECDSA) to the list of known hosts. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0670 for '/var/www/html/dokuwiki/data/dokuwiki' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "/var/www/html/dokuwiki/data/dokuwiki": bad permissions git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

Exception: Git command failed to perform periodic pull: hint: Pulling without specifying how to reconcile divergent branches is hint: discouraged. You can squelch this message by running one of the following hint: commands sometime before your next pull: hint: hint: git config pull.rebase false # merge (the default strategy) hint: git config pull.rebase true # rebase hint: git config pull.ff only # fast-forward only hint: hint: You can replace "git config" with "git config --global" to set a default hint: preference for all repositories. You can also pass --rebase, --no-rebase, hint: or --ff-only on the command line to override the configured default per hint: invocation. Warning: Permanently added 'github.com,140.82.112.3' (ECDSA) to the list of known hosts. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0670 for '/var/www/html/dokuwiki/data/dokuwiki' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "/var/www/html/dokuwiki/data/dokuwiki": bad permissions git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the gitbacked plugin.

More info has been written to the DokuWiki error log.