June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import forms.
|
||||
|
||||
class Window :: SDIDialog
|
||||
class MainWindow:: SDIDialog
|
||||
{
|
||||
object goodByeWorldLabel.
|
||||
object closeButton.
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
screen 1 'Mode 320x200
|
||||
locate 12,15
|
||||
? "Goodbye, World!"
|
||||
sleep
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
#INCLUDE "windows.bi"
|
||||
MessageBox(0, "Goodbye, World!", "Message",0)
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
'FreeBASIC Hello-fb0.bas May 2015
|
||||
|
||||
Screen 0 'open text window
|
||||
Print "Hello world"
|
||||
|
||||
Print "Enter any key to go the graphics screen"
|
||||
sleep
|
||||
|
||||
screen 18 'Screen 18 Resolution 640x480 with at least 256 colors
|
||||
locate 10,10
|
||||
Print "Hello world!"
|
||||
|
||||
locate 20,10
|
||||
Print "Enter any key to exit"
|
||||
sleep
|
||||
End
|
||||
|
|
@ -0,0 +1 @@
|
|||
PopUpOk("Goodbye, World!");
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
link graphics
|
||||
procedure main()
|
||||
WOpen("size=100,20") | stop("No window")
|
||||
WWrites("Goodbye, World!")
|
||||
WDone()
|
||||
end
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
import gui
|
||||
$include "guih.icn"
|
||||
|
||||
class WindowApp : Dialog ()
|
||||
|
||||
# -- automatically called when the dialog is created
|
||||
method component_setup ()
|
||||
# add 'hello world' label
|
||||
label := Label("label=Hello world","pos=0,0")
|
||||
add (label)
|
||||
|
||||
# make sure we respond to close event
|
||||
connect(self, "dispose", CLOSE_BUTTON_EVENT)
|
||||
end
|
||||
end
|
||||
|
||||
# create and show the window
|
||||
procedure main ()
|
||||
w := WindowApp ()
|
||||
w.show_modal ()
|
||||
end
|
||||
|
|
@ -0,0 +1 @@
|
|||
Goodbye, World!
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
plotinit(1, 1, 1, 1);
|
||||
plotstring(1, "Goodbye, World!");
|
||||
plotdraw([1, 0, 15]);
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
use GTK::Simple;
|
||||
use GTK::Simple::App;
|
||||
|
||||
my GTK::Simple::App $app .= new;
|
||||
$app.border-width = 20;
|
||||
$app.set-content( GTK::Simple::Label.new(text => "Goodbye, World!") );
|
||||
$app.run;
|
||||
20
Task/Hello-world-Graphical/Python/hello-world-graphical-7.py
Normal file
20
Task/Hello-world-Graphical/Python/hello-world-graphical-7.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
from kivy.app import App
|
||||
from kivy.uix.floatlayout import FloatLayout
|
||||
from kivy.uix.button import Button
|
||||
from kivy.uix.popup import Popup
|
||||
from kivy.uix.label import Label
|
||||
|
||||
|
||||
class GoodByeApp(App):
|
||||
def build(self, *args, **kwargs):
|
||||
layout = FloatLayout()
|
||||
ppp = Popup(title='Goodbye, World!',
|
||||
size_hint=(0.75, 0.75), opacity=0.8,
|
||||
content=Label(font_size='50sp', text='Goodbye, World!'))
|
||||
btn = Button(text='Goodbye', size_hint=(0.3, 0.3),
|
||||
pos_hint={'center': (0.5, 0.5)}, on_press=ppp.open)
|
||||
layout.add_widget(btn)
|
||||
return layout
|
||||
|
||||
|
||||
GoodByeApp().run()
|
||||
29
Task/Hello-world-Graphical/Python/hello-world-graphical-8.py
Normal file
29
Task/Hello-world-Graphical/Python/hello-world-graphical-8.py
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
from kivy.app import App
|
||||
from kivy.lang.builder import Builder
|
||||
|
||||
kv = '''
|
||||
#:import Factory kivy.factory.Factory
|
||||
|
||||
FloatLayout:
|
||||
Button:
|
||||
text: 'Goodbye'
|
||||
size_hint: (0.3, 0.3)
|
||||
pos_hint: {'center': (0.5, 0.5)}
|
||||
on_press: Factory.ThePopUp().open()
|
||||
|
||||
<ThePopUp@Popup>:
|
||||
title: 'Goodbye, World!'
|
||||
size_hint: (0.75, 0.75)
|
||||
opacity: 0.8
|
||||
Label:
|
||||
text: 'Goodbye, World!'
|
||||
font_size: '50sp'
|
||||
'''
|
||||
|
||||
|
||||
class GoodByeApp(App):
|
||||
def build(self, *args, **kwargs):
|
||||
return Builder.load_string(kv)
|
||||
|
||||
|
||||
GoodByeApp().run()
|
||||
1
Task/Hello-world-Graphical/Red/hello-world-graphical.red
Normal file
1
Task/Hello-world-Graphical/Red/hello-world-graphical.red
Normal file
|
|
@ -0,0 +1 @@
|
|||
>> view [ text "Hello World !"]
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
Imports System.Windows.Forms
|
||||
|
||||
Module GoodbyeWorld
|
||||
Sub Main()
|
||||
Messagebox.Show("Goodbye, World!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue