import kivy
from scapy.all import *
from kivy.uix.stacklayout import StackLayout
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.label import Label
from kivy.uix.button import Button
from kivy.uix.textinput import TextInput
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.lang import Builder
from kivy.app import App
from kivy.uix.scrollview import ScrollView
from kivy.properties import ObjectProperty
Builder.load_string('''
<RebornTool>:
scrll: scrll
box: box
orientation: 'tb-lr'
cols: 2
spacing: 4
canvas:
Rectangle:
source: 'bg.jpg'
size: self.size
BoxLayout:
size_hint: .5, None
orientation: 'horizontal'
Button:
text: 'connection info'
BoxLayout:
size_hint: .5, .65
orientation: 'horizontal'
Label:
text: 'Filler'
BoxLayout:
size_hint: .5, None
orientation: 'horizontal'
Button:
text: 'Scan'
on_release: root.results()
Button:
text: 'Exit'
ScrollView:
id: scrll
size_hint:(None, None)
minimum_height:scrll.setter('height')
BoxLayout:
id: box
orientation: 'vertical'
size_hint:(None, None)
''')
#mainscreen
class RebornTool(StackLayout):
def __init__(self, **kwargs):
super(RebornTool, self).__init__(**kwargs)
box = ObjectProperty()
scrll = ObjectProperty()
def results(self):
for i in range(30):
btn = Button(text=str(i),
size_hint_y=None,height=40)
self.box.add_widget(btn)
class RebornApp(App):
def build(self):
return RebornTool()
if __name__=='__main__':
RebornApp().run()
')
canvas:
Color:
rgba: 1, 0, 0, 0.5
Rectangle:
size: self.size
pos: self.pos
Image:
id: box
source: '/mnt/Zen320/Zen/My Pictures/Computer/00591calmafterthestorm1600x120.jpg'
size: 1020, 1000
# BoxLayout:
# id: box
# orientation: 'vertical'
size_hint:(None, None)
''') self.box.size_hint_y = None
self.box.height = 30 * 40
size: self.minimum_sizeThanks for the Info :)
--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/RojDZPmhW9o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.