• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

int-brain-lab / iblrig / 10568073180

26 Aug 2024 10:13PM UTC coverage: 47.538% (+0.7%) from 46.79%
10568073180

Pull #711

github

eeff82
web-flow
Merge 599c9edfb into ad41db25f
Pull Request #711: 8.23.2

121 of 135 new or added lines in 8 files covered. (89.63%)

1025 existing lines in 22 files now uncovered.

4084 of 8591 relevant lines covered (47.54%)

0.95 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

25.0
/iblrig/graphic.py
1
"""Popup and string input prompts"""
2

3
import tkinter as tk
2✔
4
from tkinter import simpledialog
2✔
5

6

7
def numinput(title, prompt, default=None, minval=None, maxval=None, nullable=False, askint=False):
2✔
UNCOV
8
    root = tk.Tk()
×
UNCOV
9
    root.withdraw()
×
UNCOV
10
    ask = simpledialog.askinteger if askint else simpledialog.askfloat
×
UNCOV
11
    ans = ask(title, prompt, initialvalue=default, minvalue=minval, maxvalue=maxval)
×
UNCOV
12
    if ans == 0:
×
UNCOV
13
        return ans
×
UNCOV
14
    elif not ans and not nullable:
×
15
        return numinput(title, prompt, default=default, minval=minval, maxval=maxval, nullable=nullable, askint=askint)
×
16
    return ans
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc