Anonymous
Fügen Sie Karussell über den Hauptbildschirm hinter Slider Control in Kivy ein
Post
by Anonymous » 03 Mar 2025, 18:05
Ich bin ein erfahrener VBA -Codierer und habe jetzt festgestellt, dass ich meine Windows -OS -App in Excel in eine Android -App entwickelt habe ...
Demo < /p>
Ich bin ungefähr auf halbem Weg durch ...
Ich muss ein Karussell einfügen, das ein Karussell einfügen muss. Aus ... < /p>
Code: Select all
Below is my code for Screen I'm referencing...
# Coding for Launch Screen...
# Coding for Launch Screen...
:
name: 'EzLaunch'
# This is for the First screen below slider...
canvas.before:
Rectangle:
#background_color: 50, 0, 0, 0
pos: self.pos
size: self.size
source: 'Images\launchscreen.png'
Carousel:
direction: 'right'
# Will incorporate a loop here..
Image:
source: 'Images\carousel\Jose-Cuervo.png'
Image:
source: 'Images\carousel\Absolut.png'
val_text: ToT_label
# Coding for slider...
slide_text: slider_label
BoxLayout:
orientation: 'vertical'
size: root.width/2, root.height/1.5
Slider:
min: 0
max: 30
step: .25
orientation: 'vertical'
on_value: root.slide_it(*args)
Label:
markup: True
text: '[font=Impact]BRAND[/font]'
font_size: 25
background_color: (0, 0, 0, 1)
size_hint: (.55, 0.056)
pos_hint: {'center_x': 0.50, 'center_y': .971}
height: 40
canvas.before:
Color:
rgba: self.background_color
Rectangle:
size: self.size
pos: self.pos
Label:
id: ToT_label
text: '30'
color: 246/255, 190/255, 0/255
font: 'arial'
font_size: 15
background_color: (0, 0, 0, 1)
size_hint: (.110, 0.044)
pos_hint: {'center_x': 0.5, 'center_y': .899}
height: 40
canvas.before:
Color:
rgba: self.background_color
Rectangle:
size: self.size
pos: self.pos
Label:
id: slider_label
text: '27.25'
color: 246/255, 190/255, 0/255
font_size: 25
background_color: (0, 0, 0, 1)
size_hint: (.25, 0.055)
pos_hint: {'center_x': 0.50, 'center_y': .845}
height: 40
canvas.before:
Color:
rgba: self.background_color
Rectangle:
size: self.size
pos: self.pos
# Code for Home button...
Button:
background_color: 0, 0, 0, 0
size_hint: 1.2, .045
on_press: root.manager.current = 'EzHome'
#root.manager.transition.direction = 'top'
pos_hint: {'center_x': 0.50, 'center_y': 0.02}
# Code for arrow buttons...
Button:
background_color: 0, 0, 0, 0
size_hint: .25, .070
on_press: root.manager.current = 'EzHome'
#root.manager.transition.direction = 'bottom'
pos_hint: {'center_x': 0.10, 'center_y': .975}
Button:
background_color: 0, 0, 0, 0
size_hint: .25, .070
on_press: root.manager.current = 'EzHome'
#root.manager.transition.direction = 'bottom'
pos_hint: {'center_x': 0.90, 'center_y': .975}
# Coding for plus|minus buttons...
Button:
background_color: 0, 0, 0, 0
size_hint: .099, .044
on_press: root.add_it(*args)
pos_hint: {'center_x': 0.795, 'center_y': .899}
Button:
background_color: 0, 0, 0, 0
size_hint: .099, .044
on_press: root.min_it(*args)
pos_hint: {'center_x': 0.208, 'center_y': .899}
"""
Vertrauen auf eine Richtung ...
Danke Jungs & Mädels ...
Versuchte den kommentierten Code oben für Karussell ...
1741021549
Anonymous
Ich bin ein erfahrener VBA -Codierer und habe jetzt festgestellt, dass ich meine Windows -OS -App in Excel in eine Android -App entwickelt habe ... Demo < /p> Ich bin ungefähr auf halbem Weg durch ... Ich muss ein Karussell einfügen, das ein Karussell einfügen muss. Aus ... < /p> [code]Below is my code for Screen I'm referencing... # Coding for Launch Screen... # Coding for Launch Screen... : name: 'EzLaunch' # This is for the First screen below slider... canvas.before: Rectangle: #background_color: 50, 0, 0, 0 pos: self.pos size: self.size source: 'Images\launchscreen.png' Carousel: direction: 'right' # Will incorporate a loop here.. Image: source: 'Images\carousel\Jose-Cuervo.png' Image: source: 'Images\carousel\Absolut.png' val_text: ToT_label # Coding for slider... slide_text: slider_label BoxLayout: orientation: 'vertical' size: root.width/2, root.height/1.5 Slider: min: 0 max: 30 step: .25 orientation: 'vertical' on_value: root.slide_it(*args) Label: markup: True text: '[font=Impact]BRAND[/font]' font_size: 25 background_color: (0, 0, 0, 1) size_hint: (.55, 0.056) pos_hint: {'center_x': 0.50, 'center_y': .971} height: 40 canvas.before: Color: rgba: self.background_color Rectangle: size: self.size pos: self.pos Label: id: ToT_label text: '30' color: 246/255, 190/255, 0/255 font: 'arial' font_size: 15 background_color: (0, 0, 0, 1) size_hint: (.110, 0.044) pos_hint: {'center_x': 0.5, 'center_y': .899} height: 40 canvas.before: Color: rgba: self.background_color Rectangle: size: self.size pos: self.pos Label: id: slider_label text: '27.25' color: 246/255, 190/255, 0/255 font_size: 25 background_color: (0, 0, 0, 1) size_hint: (.25, 0.055) pos_hint: {'center_x': 0.50, 'center_y': .845} height: 40 canvas.before: Color: rgba: self.background_color Rectangle: size: self.size pos: self.pos # Code for Home button... Button: background_color: 0, 0, 0, 0 size_hint: 1.2, .045 on_press: root.manager.current = 'EzHome' #root.manager.transition.direction = 'top' pos_hint: {'center_x': 0.50, 'center_y': 0.02} # Code for arrow buttons... Button: background_color: 0, 0, 0, 0 size_hint: .25, .070 on_press: root.manager.current = 'EzHome' #root.manager.transition.direction = 'bottom' pos_hint: {'center_x': 0.10, 'center_y': .975} Button: background_color: 0, 0, 0, 0 size_hint: .25, .070 on_press: root.manager.current = 'EzHome' #root.manager.transition.direction = 'bottom' pos_hint: {'center_x': 0.90, 'center_y': .975} # Coding for plus|minus buttons... Button: background_color: 0, 0, 0, 0 size_hint: .099, .044 on_press: root.add_it(*args) pos_hint: {'center_x': 0.795, 'center_y': .899} Button: background_color: 0, 0, 0, 0 size_hint: .099, .044 on_press: root.min_it(*args) pos_hint: {'center_x': 0.208, 'center_y': .899} """ [/code] Vertrauen auf eine Richtung ... Danke Jungs & Mädels ... Versuchte den kommentierten Code oben für Karussell ...