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

int-brain-lab / iblrig / 9032957364

10 May 2024 01:25PM UTC coverage: 48.538% (+1.7%) from 46.79%
9032957364

Pull #643

github

74d2ec
web-flow
Merge aebf2c9af into ec2d8e4fe
Pull Request #643: 8.19.0

377 of 1074 new or added lines in 38 files covered. (35.1%)

977 existing lines in 19 files now uncovered.

3253 of 6702 relevant lines covered (48.54%)

0.97 hits per line

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

30.77
/iblrig/graphic.py
1
#!/usr/bin/env python
2
# @Author: Niccolò Bonacchi
3
# @Creation_Date: 2022-01-24
4
# @Editor: Michele Fabbri
5
# @Edit_Date: 2022-02-01
6
"""
2✔
7
Popup and string input prompts
8
"""
9

10
import tkinter as tk
2✔
11
from tkinter import simpledialog
2✔
12

13

14
def numinput(title, prompt, default=None, minval=None, maxval=None, nullable=False, askint=False):
2✔
UNCOV
15
    root = tk.Tk()
×
16
    root.withdraw()
×
17
    ask = simpledialog.askinteger if askint else simpledialog.askfloat
×
18
    ans = ask(title, prompt, initialvalue=default, minvalue=minval, maxvalue=maxval)
×
19
    if ans == 0:
×
UNCOV
20
        return ans
×
UNCOV
21
    elif not ans and not nullable:
×
NEW
22
        return numinput(title, prompt, default=default, minval=minval, maxval=maxval, nullable=nullable, askint=askint)
×
23
    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