Forum Archive

Touch Event doesnt work :(

NRWTV2
# coding: utf-8

import ui
from PIL import Image
import threading
import console
import random



# continue with the rest of your code
v = ui.load_view()
imagelogo = v['imageview1']

imagelogo.image = image = ui.Image.named('logo.PNG')

def slider():
  threading.Timer(15.0, slider).start()
  imageslide = v['imageview2']
  num = random.randint(1, 3)
  imageslide.image = ui.Image.named('slide/' + str(num) + '.jpg') 



slider()

def touch_began(self, touch):
    console.hud_alert('Lol')


v.present('fullscreen',hide_title_bar=False)

What is the problem?

Phuket2

Not sure. But have a look at View.touch_enabled , could be the issue