<s> from __future__ import absolute_import , division , print_function <EOL> import time <EOL> from glue . external . qt import QtCore <EOL> from glue . core import Data <EOL> from glue . core . tests . util import simple_session <EOL> from . . style_dialog import StyleDialog <EOL> class NonBlockingStyleDialog ( StyleDialog ) : <EOL> def exec_ ( self , * args ) : <EOL> self . show ( ) <EOL> time . sleep ( <NUM_LIT:0.1> ) <EOL> self . accept ( ) <EOL> def test_style_dialog ( ) : <EOL> session = simple_session ( ) <EOL> hub = session . hub <EOL> collect = session . data_collection <EOL> image = Data ( label = '<STR_LIT>' , <EOL> x = [ [ <NUM_LIT:1> , <NUM_LIT:2> ] , [ <NUM_LIT:3> , <NUM_LIT:4> ] ] , <EOL> y = [ [ <NUM_LIT:2> , <NUM_LIT:3> ] , [ <NUM_LIT:4> , <NUM_LIT:5> ] ] ) <EOL> pos = QtCore . QPoint ( <NUM_LIT:10> , <NUM_LIT:10> ) <EOL> st = NonBlockingStyleDialog . dropdown_editor ( image , pos ) </s>
