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()
Class that can be used to make Search dots...
Definition: searchdots.py:27
def __init__(self, parent, callback)
Definition: searchdots.py:29