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

int-brain-lab / iblrig / 10524660746

23 Aug 2024 11:07AM UTC coverage: 47.177% (+0.4%) from 46.79%
10524660746

Pull #710

github

74f4e8
web-flow
Merge 222cebb88 into db04546ad
Pull Request #710: 8.23.1

40 of 86 new or added lines in 4 files covered. (46.51%)

989 existing lines in 22 files now uncovered.

4052 of 8589 relevant lines covered (47.18%)

0.94 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