๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
728x90

์ „์ฒด ๊ธ€140

ping ํ…Œ์ŠคํŠธ temp1 ์‹คํ–‰ํ•˜๊ณ  setting์—์„œ ์•„๋ž˜์™€ ๊ฐ™์ด ์ˆ˜์ •ํ•ด์ฃผ๊ธฐ ๋˜๋Š” ๊ฑด๊ฐ€???????? ์•ˆ๋˜๋Š”๊ฑฐ๋‹ค. ์ฃผ์†Œ๊ฐ€ ์ ์šฉ์•ˆ๋œ ๊ฒƒ์ด์—ˆ๋‹ค. ๋“œ๋””์–ด ๋œ๋‹ค. ์šฐ์„  ์ •๋ฆฌํ•ด๋ณด์ž๋ฉด ๊ณผ์ œ1์—์„œ๋Š” ๋ผ์šฐํ„ฐ๋ฅผ 1๊ฐœ๋งŒ ์“ฐ๊ธฐ ๋•Œ๋ฌธ์— vyos์—์„œ ์„ค์ •ํ•œ eth0๋งŒ ์žˆ์œผ๋ฉด ๋œ๋‹ค ์•„๋ž˜์™€ ๊ฐ™์ด temp1 settings์—์„œ ์„ค์ •์„ ํ•ด์ฃผ๊ณ  gateway์— ๊ทธ eth0์˜ ip์ฃผ์†Œ๋ฅผ ์ ์–ด์ฃผ์—ˆ๋‹ค. ๋˜! ํ•œ! ์˜ค๋ผํด ์„ค์ •์—์„œ temp1 temp2 temp3 ๋ชจ๋‘ ๋„คํŠธ์›Œํฌ-์–ด๋Œ‘ํ„ฐ1-๋‚ด๋ถ€๋„คํŠธ์›Œํฌ๋กœ ์„ค์ •ํ•ด์ฃผ๋Š” ๊ฒƒ์ด์—ˆ๋‹ค.!!!!!!!! ์ด์ œ temp3๋„ ์„ค์ •ํ•ด์ฃผ์–ด์„œ ping ํ…Œ์ŠคํŠธ๋ฅผ ํ•ด์ค„๊ฒŒ ์šฐ์„  temp1์€ 192.0.0.12 temp2๋Š” 192.0.0.13 temp3์€ 192.0.0.14 temp1์• ์„œ temp2์™€ temp3์œผ๋กœ ๊ฐ๊ฐ ping์„ ํ•ด์ค€๋‹ค. te.. 2022. 11. 23.
QGridLayout https://wikidocs.net/5244 3) QGridLayout QGridLayout ํด๋ž˜์Šค๋Š” ๊ฒฉ์ž ํ˜•ํƒœ์˜ UI๋ฅผ ๊ตฌ์„ฑํ•˜๋Š” ๋ฐ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ๊ทธ๋ฆผ 16.38์—์„œ๋Š” 2x3 (ํ–‰x์—ด) ํฌ๊ธฐ์˜ ๊ฒฉ์ž ๊ตฌ์กฐ์— QLabel, QLineEdit… wikidocs.net 2022. 11. 23.
GUI ๊ฐ•์˜ 5 ๊ณ„์‚ฐ๊ธฐ ๋งŒ๋“ค๊ธฐ ์ด ํ˜•ํƒœ๋ฅผ ์ด ํ˜•ํƒœ๋กœ ๋ฐ”๊ฟ”๋ณด์ž ์ค‘๊ฐ„ ๊ณผ์ • import sys from PyQt5.QtWidgets import * class Main(QDialog): def __init__(self): super().__init__() self.init_ui() def init_ui(self): main_layout =QVBoxLayout() #๋ ˆ์ด์•„์›ƒ ํ‹€ ์žก๊ธฐ layout_operation = QHBoxLayout() layout_clear_equal = QHBoxLayout() layout_number = QGridLayout() layout_equation_solution = QFormLayout() ### equation , solution ### self.equation = QLineEdit().. 2022. 11. 23.
GUI ๊ฐ•์˜ 4 Widget์— ์ด๋ฒคํŠธ๋ฅผ ์—ฐ๊ฒฐํ•˜์—ฌ ์ž‘๋™์‹œํ‚ค๊ธฐ ๊ธฐ๋ณธ ์ฝ”๋“œ import sys from PyQt5.QtWidgets import * class Main(QDialog): def __init__(self): super().__init__() self.init_ui() def init_ui(self): main_layout =QVBoxLayout() self.setLayout(main_layout) self.resize(400,400) self.show() if __name__ =='__main__': app = QApplication(sys.argv) main = Main() sys.exit(app.exec_()) ๋ฒ„ํŠผ ์ถ”๊ฐ€ํ•˜๊ธฐ pushbutton = QPushButton("button1") main_layou.. 2022. 11. 22.
728x90