Robot Framework Integrated Development Environment (RIDE)
searchdots.py
Go to the documentation of this file.
1
# Copyright 2008-2015 Nokia Networks
2
# Copyright 2016- Robot Framework Foundation
3
#
4
# Licensed under the Apache License, Version 2.0 (the "License");
5
# you may not use this file except in compliance with the License.
6
# You may obtain a copy of the License at
7
#
8
# http://www.apache.org/licenses/LICENSE-2.0
9
#
10
# Unless required by applicable law or agreed to in writing, software
11
# distributed under the License is distributed on an "AS IS" BASIS,
12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
# See the License for the specific language governing permissions and
14
# limitations under the License.
15
16
import
wx
17
18
19
27
class
DottedSearch
():
28
29
def
__init__
(self, parent, callback):
30
self.
_timer
_timer = wx.Timer(parent)
31
self.
_dots
_dots = 0
32
self.
_callback
_callback = callback
33
parent.Bind(wx.EVT_TIMER, self.
_timer_event
_timer_event)
34
35
def
_timer_event
(self, event):
36
self.
_dots
_dots = (self.
_dots
_dots + 1) % 5
37
self.
_callback
_callback(
'.'
*self.
_dots
_dots)
38
39
def
start
(self):
40
self.
_timer
_timer.Start(500)
41
42
def
stop
(self):
43
self.
_timer
_timer.Stop()
robotide.ui.searchdots.DottedSearch
Class that can be used to make Search dots...
Definition:
searchdots.py:27
robotide.ui.searchdots.DottedSearch._dots
_dots
Definition:
searchdots.py:31
robotide.ui.searchdots.DottedSearch.start
def start(self)
Definition:
searchdots.py:39
robotide.ui.searchdots.DottedSearch._callback
_callback
Definition:
searchdots.py:32
robotide.ui.searchdots.DottedSearch._timer_event
def _timer_event(self, event)
Definition:
searchdots.py:35
robotide.ui.searchdots.DottedSearch._timer
_timer
Definition:
searchdots.py:30
robotide.ui.searchdots.DottedSearch.__init__
def __init__(self, parent, callback)
Definition:
searchdots.py:29
robotide.ui.searchdots.DottedSearch.stop
def stop(self)
Definition:
searchdots.py:42
src
robotide
ui
searchdots.py
Generated by
1.9.1