Forum Archive

x button of scene object.

hxdaze

I would like to delete a button of scene object.
How do I make a source code to delete it?
There is no information about it.

JonB

Scene objects don't have buttons, per se, just drawn boxes. Modification of a scene depends on how the scene does its drawing, so there is no universal answer.... Did you mean a ui.View?

ccc

It is a bit difficult to understand the context of your question without code but you can take a look at Layer.remove_layer() on http://omz-software.com/pythonista/docs/ios/scene.html to see if that helps.

hxdaze

I am sorry for less information.
I would like to delete a button in the following case.

from scene import *
class MyScene (Scene):
def setup(self):
pass
def draw(self):
background(0, 0, 0)
run(MyScene())

I can watch only 'x button' on the screen.
I would like to delete this button because I want to prepare other close button by my self.
I already check other sample and open source such as GitHub.
But there is no same case of situation and document.

ccc

http://omz-forums.appspot.com/pythonista/post/5246202996064256

hxdaze

Thank you for your help.
I miss find it.